Forums

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?

#137716
CrocoDillon
Participant

You can only have simple selectors as argument: http://www.w3.org/TR/css3-selectors/#negation

Combinations are not allowed. Have you tried:?

nav li:not(:hover) > ul {
max-height: 0;
}