Stuck on SASS in using @for Loop Challenge (help)

Tell us what’s happening:
Describe your issue in detail here.

I do not know why this code is failing. Am I doing something wrong here?

  **Your code so far**

<style type='text/scss'>

@for $j from 1 through 6 {
  .text-#{j} { font-size: 15px * $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>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36

Challenge: Use @for to Create a Sass Loop

Link to the challenge:

You’re missing one character.

your code;

Revisit the lesson and see if you can spot it

1 Like

Thank you so much. I missed the ‘$’ on the variable. I did not notice.

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