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
  • 732,580
  • 175
  • 1,330
  • 1,459
Unspoiled9710
  • 102
  • 2
  • 11

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