SASS Course - Issues

<style type='text/sass'>
  
  @for $j from 1 to 6 {
    .text-#{$j} { font-size: 10 * $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>

This is my code and it works correctly, but still the website doesn’t allow me to go to next problem.

It would help if you could please post the challenge name or better yet post the url to the challenge. In the future you should try using the Ask for Help button on the challenge, so these things get auto-populated in the thread.

Thank you.

EDIT: I found the challenge you are asking about. Your code is correct. Try refreshing the page or using a different browser before running the tests again.

Thanks for replying.

I have tried switching to firefox, but it still doesn’t work!

Did you try Chrome? Which tests are not passing?

Initially I tried using chrome.
Only the first one passes, rest shows failed.

You may need to try Chrome again and clear your cache.

Look at this too! The code here is correct. But the tests doesn’t work. :frowning:


Same issues with every code!

Ii suggest testing all of this on Chrome instead of Firefox. Also, if you open the browser’s console (Ctrl + Shft + J in Chrome), do you see any error messages?

No errors in console! I’ll check it in chrome again.

You have problem with x declaration.

It should be $x :1; instead $1:1 ;

Which code are you referring to? The OP has posted code for 3 different challenges.

code for this challenge

https://learn.freecodecamp.org/front-end-libraries/sass/apply-a-style-until-a-condition-is-met-with-while/

Cool Thanx for this thread