Prev | Current Page 134 | 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 Full Full Full Full Full Full Buggy Buggy
In Internet Explorer versions up to and including 6:
?–  :hover is applied only to HTML a elements that have an href attribute.
?–  :hover is counted as two classes/pseudo-classes in the specificity calculation.
?–  :hover is ignored if it??™s not in the last simple selector.
Neither Internet Explorer 5.5 nor 6 supports the chaining of pseudo-classes; only
the last pseudo-class is honored in these browsers.
In Internet Explorer 7:
?–  The element sometimes remains in the hover state if the cursor is moved from
the element while the mouse button is pressed; the hover state sometimes doesn??™t
apply when it should.
?–  :hover doesn??™t match elements with negative z-index property values.
SPEC
CSS2
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE7
FULL FULL FULL NONE
Example
This rule applies a border around any text
textarea element that has focus:
textarea:focus {
border: 2px solid blue;
}
Selector Reference
87 Selector Reference
:focus
:focus {
declaration block
}
This pseudo-class matches any element
that has keyboard input focus.


Pages:
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146