I have the following structure, where second element may or may not appear.
<div class="wrapper">
<div class="firstElement"></div>
<div class="secondElement"></div>
</div>
I want to conditionally set styles on .firstElement
ONLY if .secondElement
exists.
Is there a way to do this with PURE CSS? With either sibling selectors/ parent selectors?
Thanks!