I need to apply a bunch of css properties only to a ul
item which has a child of li.example-class
, and not to every other ul
.
Example:
<ul> <!-- this one has the css applied to it -->
<li class="example-class">...</li>
<li class="example-class">...</li>
<li class="example-class">...</li>
</ul>
<ul> <!-- and this one has no css applied -->
<li class="not-example-class">...</li>
<li class="not-example-class">...</li>
<li class="not-example-class">...</li>
</ul>