You can do something like this:
.content:nth-child(odd)>div {
background: blue;
}
.content:nth-child(even)>div {
background: red;
}
.content {
width: 200px;
height: 200px;
}
<div class="activeContent">
<div class="content">
<div class="colour-blue">
stuff
</div>
</div>
<div class="content">
<div class="colour-light-blue">
some more stuff
</div>
</div>
</div>
Run codeThis will work very well, I think.
source
share