I have the following HTML example code:
<div>
<span class="foo">
</div>
<div>
<span class="moo">
</div>
I want to add some CSS styles to the div that contains a child with moo
class.
Can I add a style to an element, when containing a specific child, with CSS only ?