|
Change link color while hovering
| Language: |
CSS |
Unrated
Rated by 0 Users
1 Star = Horrible 5 Stars = Perfect
Rate Code Now
|
| Posted By: |
blake |
| Author Website: |
Differences between ASP and PHP |
| Posted On: |
7/9/2007 |
| Code Views: |
851 |
These lines of CSS will allow you to have links in your site change color when the user moves to the mouse over and off of these links.
|
/* # Place this code into a file with a .css extension # Then in the <HEAD> tags of your webpage, put this: # <link rel="stylesheet" href="filename.css" type="text/css"> # change filename.css to your new filename # inside your webpage, to make a link "dynamic", add this: # <a href="link" class="HoverLink">Link Text</a> */
A.HoverLink { FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: black; FONT-STYLE: normal; FONT-FAMILY: Tahoma, Arial; FONT-VARIANT: normal; TEXT-DECORATION: none } A.HoverLink:hover { FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: gray; FONT-STYLE: normal; FONT-FAMILY: Tahoma, Arial; FONT-VARIANT: normal; TEXT-DECORATION: none }
View code in Textarea
This code has not been tested by Your WebCode. Use it at your own risk.
Please report any copyright violations.
|
|