:not
Applies one or more styles to any element that is the first child of its parent.
Syntax
:not(
s
) {
sRules
}
Possible values
s Either a Type selector selector, Universal selector selector, attribute selector, Class selector selector, ID selector selector, or Pseudo-classes selector.
sRules
Value that specifies one or more cascading style sheets attribute/value pairs.
Remarks
The :not pseudo-class takes a simple selector as an argument to select elements that are not selected by that argument.
Standards information
This pseudo-class is defined in CSS Selectors Level 3
.
Applies to
a, abbr, acronym, address, b, big, blockquote, body, caption, center, cite, code, col, colgroup, dd, dfn, dir, div, dl, dt, em, form, hn, html, i, img, input, input type=button, input type=checkbox, input type=file, input type=hidden, input type=image, input type=password, input type=radio, input type=reset, input type=submit, input type=text, kbd, label, legend, li, listing, marquee, menu, ol, p, plaintext, pre, s, samp, select, small, span, strike, strong, sub, sup, table, tbody, td, textarea, tfoot, th, thead, tr, tt, u, ul, var, xmp