Sass: Use @for to Create a Sass Loop

Sass: Use @for to Create a Sass Loop
0

#1

Please help.My code is not passing this challenge. What am I doing wrong. Everything seems to be working correct and the text is changing size but all the tests fail exept the 1rst one.

<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>

Sass: Use @for to Create a Sass Loop


#2

Your code works fine here.

Google Chrome .Version 68.0.3440.106 (64-Bit)


#3

Thanx I’m also using chrome but not passing. thanx for the reply