Skip to content

Instantly share code, notes, and snippets.

@jkochis
Forked from taniarascia/forloop.scss
Created March 25, 2016 00:04
Show Gist options
  • Save jkochis/4aa0c58032c2d671db1a to your computer and use it in GitHub Desktop.
Save jkochis/4aa0c58032c2d671db1a 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