Help with Sass, Use @while please

Help with Sass, Use @while please
0.0 0

#1

Cant pass the test even though i think my code is correct:

<style type='text/sass'>
  $x: 1;
  @while $x < 11 {
    .text-#{$x}{
    font-size: $x*5px;
    }
    $x: $x + 1;
  }


</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>
<p class="text-6">Hello</p>
<p class="text-7">Hello</p>
<p class="text-8">Hello</p>
<p class="text-9">Hello</p>
<p class="text-10">Hello</p>



// running test
Your .text-1 class should have a font-size of 5px.
Your .text-2 class should have a font-size of 10px.
Your .text-3 class should have a font-size of 15px.
Your .text-4 class should have a font-size of 20px.
Your .text-5 class should have a font-size of 25px.
Your .text-6 class should have a font-size of 30px.
Your .text-7 class should have a font-size of 35px.
Your .text-8 class should have a font-size of 40px.
Your .text-9 class should have a font-size of 45px.
Your .text-10 class should have a font-size of 50px.
// tests completed

link to challenge: https://learn.freecodecamp.org/front-end-libraries/sass/apply-a-style-until-a-condition-is-met-with-whilePreformatted text


#2

Works for me. Maybe trying closing browser or refreshing page and re run the tests.


#3

Tried that… still its showing same error.


#4

Try a different browser.


#5

Now its working in the same browser. Anyway thanks!