I’ve been moving along well with SASS but I’m stuck at using the while statement.
Thanks for any help
<style type='text/sass'>
$x: 1;
@while $x < 11{
.text-#{$x}{font-size: 5px * $i;}
$x: $x + 1;
}
</style>
<p class="text-1">Hello</p>
<p class="text-2">Hello</p>
<p class="text-3">Hello</p>
<p class="text-4">Hello</p>
<p class="text-5">Hello</p>
<p class="text-6">Hello</p>
<p class="text-7">Hello</p>
<p class="text-8">Hello</p>
<p class="text-9">Hello</p>
<p class="text-10">Hello</p>