<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
body {
display: flex;
height: 100vh;
margin: 0;
}
div {
flex: 1;
}
@for $i from 0 through 10 {
div:nth-child(#{$i}) {
background: hsl(0 0 ($i * 10%));
}
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.