Is there a css selector I can use only if a child element exists?
Consider:
I would like to apply display:none
to div only if it doesn't have at least one child element.
Any selector I can use do this?
Answer
Nope, unfortunately that's not possible with CSS selectors.
No comments:
Post a Comment