I have question about CSS selectors. I have below structure - I can only modiffy CSS - I don't have access to modify html or JS.
<div class="wrapper">
<div>
<div>
<div class="open">
</div>
</div>
</div>
<div>
<div class="top">
</div>
</div>
</div>
Class open will be toggled. Can I make selector when:
- div in 4 line has open - div with class top => .top {top:50px}
- div in 4 line not has open - div with class top => .top{top:0px;}
This is possible?