Use @for to Create a Sass Loop (1)

My code doesn’t work properly, could anyone check it for me please.

  **Your code so far**

<style type='text/scss'>
@for $j from 1 to 6 {
  .text-#{$j} {font-size: 15px * $j; }


<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>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0

Challenge: Use @for to Create a Sass Loop

Link to the challenge:

Hello @olinka770

Your code is working for me and it also passes the test, what error are you receiving?

The code you have shared works on my end. Please ensure that you have disabled any extensions that interface with the freeCodeCamp website (such as Dark Mode and Ad Blocker), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.