I have two cases in my rendered HTML page.
Case 1:
<ul>
<li>A</li>
<li>B</li>
</ul>
<div class="test">Testing here</div>
Case 2:
<ul></ul>
<div class="test"></div>
In case 1, I want to apply CSS
to the div
if ul
element contains li
elements). I don't want anything for case 2. I want a pure CSS approach without any jQuery/JavaScript.