<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
Hi ,all!
Got interesting error while passing '8.Conditions" lesson. It would be great if someone could help me with it.
<Below this line, add a link to the EXACT exercise that you are stuck at.>
<In what way does your code behave incorrectly? Include ALL error messages.>
Error message:
expected div.ray:nth-child(1) to have its width style equal to 350px but got 349px
.ray {
height: 30px;
}
//Add your for-loop here:
@for $i from 1 through $total {
.ray:nth-child(#{$i}){
background: adjust-hue(blue, $i * $step);
width: if($i % 2 == 0, 300px, 350px);
margin-left: if($i % 2 == 0, 0px, 50px);
}
}
<do not remove the three backticks above>