Help: Use @for to Create a Sass Loop

Help: Use @for to Create a Sass Loop
0

#1

Tell us what’s happening:

Your code so far
I’m doing well but i don’t know why i’m not passing this challenge.


<style type='text/sass'>
  
  @for $i from 1 through 6 {
  .text-#{$i} {
  font-size: 10px * $i;
  }
}
  
</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/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/sass/use-for-to-create-a-sass-loop


#2

Try using Chrome browser.


#3

I am using Chrome browser.


#4

You may have to refresh the page or clear your cache for this challenge.