5 ms·
If 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 e
by fourspace 15y ago
If 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. =)