Home › Forums › CSS › Limits of :not() selector? › Re: Limits of :not() selector?
June 5, 2013 at 7:24 am
#137712
FezVrasta
Participant
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.
[http://jsfiddle.net/NfzAe/17/](http://jsfiddle.net/NfzAe/17/)