Given the following markup:
<div class="wrapper">
<div class="inner-wrapper">
<div class="first">
<div class="second">
</div>
</div>
</div>
<hr class="separator">
<div class="inner-wrapper">
<div class="first">
<div class="second">
</div>
</div>
</div>
</div>
How can i select class .first and .second AFTER the .separator? I have tried following:
.wrapper .separator + .inner-wrapper .first
However, it doesn't seem to work. I thought this reads something like this, from left to right:
Select ".separator" that has ".wrapper" as parent.
Select ".inner-wrapper" that follows after ".separator"
Select ".first" that follows ".inner-wrapper"
Since it's not working, i guess i'm misunderstanding the functionality of one of the selectors. Any help (or alternatives for that matter) is appreciated.
PS:
The Markup comes from an external source. While i could technically add a class with JS, i prefer not to if possible. I also tried playing around with the ":not" selectors, but i didn't get it to work either.
Thanks
Edit:
In the screenshot, inside the "header" container, there is the same construct, so a container with inner-wrapper, first etc. https://i.stack.imgur.com/CdKej.png