Reputation: 102
I want to set some attributes on all text excluded text in <nav>...</nav>
.
I know it can be done using :not()
but it only applies on parent element, not on children within that parent.
Is it possible, to apply :not()
on all children within parent?
Upvotes: 0
Views: 1535
Reputation: 76
This could help:
nav *:not(....)
The * is a wildcard selector.
Maybe this is interesting for you too: Can I write a CSS selector selecting elements NOT having a certain class or attribute?
Upvotes: 1