4 ms·
> Not if .nav li a{} and .nav a{} are specifically meant to be differing nests. But in the example they aren’t differing nests; if you change your example then
by csswizardry 15y ago
> Not if .nav li a{} and .nav a{} are specifically meant to be differing nests.
But in the example they aren’t differing nests; if you change your example then obviously it isn’t correct any more.
- fourspace 15y agoIf you're truly reusing the example from above, shouldn't it be: .nav { li {} a {} } If that's not the case, why is your first "nested" pure CSS example this: .nav a {} instead of .nav li a {}
- csswizardry 15y agoBecause `.nav li a{}` is overly specific; that’s my whole point. EDIT Hold on, I think I get you… My example was an example of someone writing something incorrectly. An example of it being written correctly would indeed be: .nav{ li{} a{} }
- fourspace 15y agoCool, we're on the same page. =)