Skip to content

Instantly share code, notes, and snippets.

@taniarascia
Created January 8, 2016 01:01
Show Gist options
  • Save taniarascia/15f3fa7cceecac8299a4 to your computer and use it in GitHub Desktop.
Save taniarascia/15f3fa7cceecac8299a4 to your computer and use it in GitHub Desktop.
SCSS For Loop
@for $i from 1 through 8 {
$width: percentage(1 / $i)
.col-#{$i} {
width: $width;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment