<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

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.