Similar Question:
Looking for a CSS parent selector?
If I am unable to modify the HTML file, is it possible to apply CSS styles to the parent DIV using only the ID of the direct child DIV?
Here's an example scenario:
<div>
<div id="child">
content
</div>
</div>
Is there something like this: #child:parent div
in CSS rules?