I have the following HTML
<div class="class1">
<div class="class2">
<div class="class3 subclass1">
Test
</div>
</div>
</div>
and I need to add the CSS:
background-color: yellow;
to the div
with class class1
that has a child div with class class3 subclass1
. Cannot just add the CSS to the class1
as there could be more than one div
with class of class1
.
Is that possible with just CSS?