Check this fiddle
.a+.b, .a+.b+.b+.b{
background: red;
}
I’m using adjacent sibling character. But this solution may not be feasible when the the .b
count is more.
1
solved Select even and odd childs of a particular class after a specific class child