body{ list-style: none; width: 100%; } $a: 8; @while $a > 0 { .h-#{$a} { width: 2px * $a; } $a: $a - 2; }