Easy Tutorial
❮ Sel Only Child Css3 Pr Outline Offset ❯

CSS3 :not Selector

Complete CSS Selector Reference

Example

Set the background color for every element that is not a <p> element:


Definition and Usage

The :not(selector) selector matches every element that is not the specified element/selector.


Browser Support

The numbers in the table specify the first browser version that fully supports the selector.

Selector
:not() 4.0 9.0 3.5 3.2 9.6

Complete CSS Selector Reference

❮ Sel Only Child Css3 Pr Outline Offset ❯