CSS to select top level of a ul

MiliPienwibrej

New Member
\[code\]li > ul > li\[/code\] selects all \[code\]li\[/code\] elements which are deeper than the first level of a \[code\]ul\[/code\].\[code\]li\[/code\] selects all li elements\[code\]li:not(li > ul > li)\[/code\] should select all \[code\]li\[/code\] elements which are no deeper than the first level of a \[code\]ul\[/code\]--that is, only first level elements--but it doesn't. Why? Thanks!
 
Back
Top