CodeNewbie Community

Discussion on: Is there a CSS parent selector?

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:

In the meantime: what are you trying to achieve?

reggie_hazel profile image
Regina Author

Thank you so much for this response! I'm trying to work with a menu via a CMS and I can't move the active element to

  • — at least not easily.

    This is helpful, though :)