Your WebCode

Log In / Submit Code / Join     

Find Code
    Highest Rated
    Newest
    Most Viewed
    Browse
           ASP
           ASP.NET
           CSS
           JAVA
           JavaScript
           PERL
           PHP


Sponsors
  
Sites of Interest
   Asp.net Problems
   seminar topics
   Funny Videos
   You Tube videos
   Comedy videos
   Watch YouTube
   Funny You Tube videos
   smart diet
   craiglist
   Asp VS Php

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.



Reviews
Hide Reviews | Add Review | Delete Review 
No Reviews

Blog | Monthly Contest | Current Contest Leaders | FAQ | Link to us
Privacy Policy | Terms | Credits | Other Sites | Contact Us
Copyright © 2008, Your WebCode.