Tell us what’s happening:
When i run test,the terminator show me,my class text-1 is not set font-size to 10px, tell me why pls.
Your code so far
<style type='text/sass'>
@for $j from 1 through 6 {
.text-#{$j} { font-size: 10px * $j; }
}
.text-1 {
font-size: 10px;
}
</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/79.0.3945.88 Safari/537.36
.
Challenge: Use @for to Create a Sass Loop
Link to the challenge:
https://www.freecodecamp.org/learn/front-end-libraries/sass/use-for-to-create-a-sass-loop