Code seems Correct for Sass fors but Not Passing

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

Each element has a font size that is a multiple of 15px yet the tests are not passing for .text-1. Am I missing something or is something wrong with the tests?

  **Your code so far**
<style type='text/scss'>
@for $j from 1 to 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/102.0.5005.63 Safari/537.36

Challenge: Use @for to Create a Sass Loop

Link to the challenge:

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