Tell us what’s happening:
I’m doing the for loop but when i try to run the tests it was not working. example:
@for $j from 1 to 6 {
.text-#{$j} {
font-size: 15px * $j;
}
}
Your code so far
<style type='text/scss'>
@for $j from 1 through 5 {
.text-#{$j} {
font-size: 15px * $j;
}
}
</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>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Challenge Information:
SASS - Use @for to Create a Sass Loop