Prev | Current Page 133 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


Compatibility
Opera Safari Firefox Internet Explorer
9.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 Buggy Buggy Buggy
Internet Explorer 5.5 and 6 incorrectly apply this pseudo-class to links that have
keyboard input focus??”a state that should be matched by :focus, which those
browsers do not support.
Internet Explorer versions up to and including 7:
?–  Apply :active only to HTML a elements that have an href attribute.
?–  Ignore :active unless it??™s the last part of a pseudo-class chain.
The Ultimate CSS Reference 86
:hover
:hover {
declaration block
}
The :hover pseudo-class matches any
element that??™s being designated by a
pointing device. The term designated
refers to the process during which the
cursor is hovered over the box generated
by the element.
Compatibility
SPEC
CSS2
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE7+
FULL FULL FULL FULL
Example
This rule will apply a border to any img
element over which the cursor is hovered:
img:hover {
border: 5px solid #F2F2F2;
}
Opera Safari Firefox Internet Explorer
9.


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