The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Limits of :not() selector? Re: Limits of :not() selector?


Sorry guys I’ve solved the problem, but I’m still curious about the limits of the :not() selector.
If someone can explain me how it works please…

For fix it I’ve used this CSS:

nav > ul:hover > li:not(:hover) > ul {
display: none;

I’ve just moved the not selector on the parent, so I don’t need to specify the “li > hover” into the :not() selector.