HTML and CSS Reference
In-Depth Information
Name
:hover
Applies to:
An element that is in a hovered state
Description:
This applies to an element during the period in which it is being hovered(when the user is
designating an element without activating it). The most common example of this is moving
the mouse pointer inside the boundaries of a hyperlink in an HTML document. Other elements
can in theory be hovered, although CSS doesn't define which ones.
Examples:
a[href]:hover {text-decoration: underline;}
p:hover {background: yellow;}
Note:
:hover support in Internet Explorer applies only to hyperlinks in versions previous to IE7.
Search WWH ::




Custom Search