I am stuck on the above second question. When I hit Run, the programme reads my newly entered code but then reverts and acts as though I didn’t just request the code to be marked. By this I mean it doesn’t mark me correct or incorrect. Then I hit run again and it tells me that my code is “Did you write a for-loop to iterate through the ten divs and set their background adjust hue on their background color in main.scss?”
Please see my code below:
$total: 10;
$step: 11;
.ray {
height: 30px;
}
@for $i from 1 through $total {
.ray:nth-child(#{$i}) {
background: adjust-hue(blue, $i * $step);
}
}
}//Number of .ray divs in our html
$step: 360deg / $total; //Used to compute the hue based on color-wheel
.ray {
height: 30px;
}
//Add your for-loop here:
Am I missing something here, or is this section throwing me some sort of bug? I have tried this on Chrome, Firefox and Explorer. Have also cleared my cache multiple times.