CodeNewbie Community 🌱

Discussion on: Is there a CSS parent selector?

Collapse
 
eineki profile image
Eineki

Like @murkrage said, you can't do it at the present.

If you need to style an element when one of his children is focused there is an handy pseudo-class you can actually use. It is supported in all major browser (maybe all)
You can read more about it here:
developer.mozilla.org/en-US/docs/W...