CSS: Is it possible to select a parent div which contains certain elements?
Say I have to following html:
<div class='row'>
<div class='cell'>
<span class='image'> </span>
Image Cell
</div>
<div class='cell'>
Regular Cell
</div>
</div>
Is it possible to distinctly select the div which contains the span
element versus the div cell which does not have the span element as its
first child? Trying todo this without js.
No comments:
Post a Comment