CodeNewbie Community 🌱

Discussion on: Is there a CSS parent selector?

Collapse
 
murkrage profile image
Mike Ekkel

Currently there is no way of doing that with just CSS, unfortunately. There is a working draft for the ‘has()’ pseudo-class that does what you are looking for, but browser support is just not there. Read more about it here: developer.mozilla.org/en-US/docs/W...

In the meantime: what are you trying to achieve?