Apply a Style Until a Condition is Met with @while 11072018

Pls helping me i dont know why it doesnt work !

Your code so far

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

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

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:

Please read following thread

yes automatic test return fail

What browser are you using?

thanks reandelldawson

I using chrome Version 67.0.3396.99 (Official Build) (64-bit)

If you are using Chrome, you may have to refresh the page or clear your cache and rerun the tests.

I had to move to another computer to pass. I left a comment with my details on this thread.

1 Like