I'd like to create a selector that targets all <li>
elements containing an empty <p>
element:
li>p:empty {
display: none;
}
<li>
<p>Size</p>
<p></p> <!-- empty -->
</li>
<li>
<p>Color</p>
<p>Blue</p> <!-- NOT empty -->
</li>
Can this be done?