:not pseudo-class
Applies one or more styles to elements that do not match the simple selector s.
![]() ![]() |
Syntax
selector:not(fullSelector) {...}
Parameters
- selector
-
A CSS simple selector.
- fullSelector
Standards information
- Selectors Level 3, Section 6.6.7
Remarks
The :not pseudo-class takes a simple selector as an argument to select elements that are not selected by that argument.
Show:

