Use @for to Create a Sass Loop [Tests not evaluating properly?]

Tell us what’s happening:

Your code so far


<style type='text/sass'>
@for $j from 1 to 6 {
.text-#{$j} { font-size: 10px*$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; rv:60.0) Gecko/20100101 Firefox/60.0.

Link to the challenge:

1 Like

I’m stuck because of the same reason, my code works and shows correct font-size when inspected

2 Likes

This is also happening for the rest of the exercises starting at this particular exercise. When can this be fixed

I am also having this issue. The result is correct but test cases are not passed.