Contents Index Topic Contents | ||
Previous Topic: height Next Topic: @import |
hover
Description
Sets the style of the anchor (A) elements when the user's mouse hovers over the link.
Remarks
Hover means that the user has the mouse positioned over the link and has hesitated. The style will not change if the mouse is simply passed over the link. Setting the hover pseudo-class is often used in conjunction with setting specific styles for the other states of a link: active, link, visited. Note the syntax in the example below uses a colon (:) to specify a pseudo-class.
Example
When a user hovers over a hyperlink contained within a document to which the following style sheet has been applied, the text is displayed in red, is converted to uppercase, and is spaced one centimeter apart.
<style> a:hover {color:red;text-transform:uppercase;letter-spacing:1cm} </style>Applies To
See Also
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.