When using plus (+) in CSS for sibling selectors, is there a way to select multiple elements?
For example, this will color the background of the second inner div:
.item1:hover + .item2 div {
background: red;
}
<div>
<div class="item1">
<div>Hover me please</div>
</div>
<div class="item2">
<div>Color me please</div>
</div>
<div class="item3">
<div>Color me two please</div>
</div>
</div>
But I'd like to also select .item3 div as well. I tried it like this, but that doesn't work:
.item1:hover + .item2 div + .item3 div {
background: red;
}
<div>
<div class="item1">
<div>Hover me please</div>
</div>
<div class="item2">
<div>Color me two please</div>
</div>
<div class="item3">
<div>Color me three please</div>
</div>
</div>
Will I have to use the JS for this or is there a CSS way that I'm missing?