Apply a Style Until a Condition is Met with @while.....hughhhh

What should be done so that it may work…HELP!


font-size requires units.

Still not working…
even I adjust the chrome’s font size …how can i get the green check mark???

What is your current solution?

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

Put a space between the : and the 1.

I think you have missed out “px” after 5.
As I always wished that my code was right but I could not pass the test either.

  $x: 1;
  @while $x < 11 {
    .text-#{$x} { font-size: $x * 5px;}
    $x: $x + 1;

nothing works…

still not working…

You can just skip the challenge if you want.

then how could i get over it…

The code above, with the change I mentioned, will pass the tests on the latest version of Chrome if an extension or setting isn’t interfering with the tests. If the tests aren’t passing then you have some other difference like the spacing that doesn’t impact functionality but will cause the tests to fail. If the tests aren’t running at all, then it is an issue with your browser or settings. You are free to just go to the curriculum page and skip to the next challenge or just skip the entire SASS section. It’s up to you.

hmmm Thanks…

I have passed the test by adding inline style on top of the current code.

but i think it is not gonna work for me…just fed up

What browser are you using? If you are using Chrome, try switch to firefox and use the same code
your code seems fine! Good Luck!

Then just skip it.

Thanks All…it worked on firefox…