Prev | Current Page 155 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

2 3.0 2.0 1.3 2.0 1.5 1.0 7.0 6.0 5.5
Full Full None None Full Full Full None None None
This pseudo-class is currently only supported in Safari 3, Firefox 1.0 and up, and
Opera 9.2 and up.
The Ultimate CSS Reference 106
:not(S)
:not(simple selector) {
declaration block
}
SPEC
CSS3
BROWSER SUPPORT
Op9.2 Saf1.3+ FF1+ IE7
NONE FULL FULL NONE
Example
The following selector matches all elements
except table elements:
:not(table) {
?‹® declarations
}
This pseudo-class is also known as the
negation pseudo-class. The argument it
takes can be any simple selector, but it
can??™t contain either the negation
pseudo-class or a pseudo-element. This
pseudo-class matches elements that
aren??™t matched by the specified selector.
For example, the selector,
input:not([type="submit"]), matches all input elements, except input elements
with a type value of "submit"??”that is, HTML submit buttons.
Compatibility
Opera Safari Firefox Internet Explorer
9.2 3.0 2.0 1.3 2.0 1.5 1.0 7.0 6.


Pages:
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167