0

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?

marc_s
  • 704,970
  • 168
  • 1,303
  • 1,425
Joedmin
  • 102
  • 1
  • 8

1 Answers1

1

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?

sbrand5020
  • 66
  • 5