Skip to content

Instantly share code, notes, and snippets.

View chriskobar's full-sized avatar

Christopher Kobar chriskobar

View GitHub Profile
@celleb
celleb / _columnfix.scss
Last active December 23, 2015 08:09
Fixes grid layout problems for zurb foundation 4 for internet explorer 8 and 7
/* zurb foundation 4 grid column fix for ie8 and below */
@mixin columnFix($columns: 12){
$i: 1;
@while $i < $columns + 1 {
$colWidth: ($i/$columns)*100%;
$colWidth7: ($i/$columns)*98%;
& .large-#{$i}, & .small-#{$i} {
width: $colWidth;
*width: $colWidth7; //sets the width for ie7