Tell us what’s happening:
I solved it. I understand the concept but not necessarily what each part of the syntax does. Can someone explain my code below?
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/122.0.0.0 Safari/537.36
Challenge Information:
SASS - Use @for to Create a Sass Loop