Jump to content

[SOLVED] change a link <a> when the mouse is over it.


otuatail

Recommended Posts

Can anyone help on this. I want the the font of an anchor to change colour when the mouse is over it like this.

 

Normal = Red

Link / visited = blue

text-decoration = none.  Hope this style sheet code shows what is needed. Cant get the normal blue.  stays yellow.

 

 

td#link
{
    FONT-WEIGHT: normal;
    FONT-SIZE: 11pt;
    color: blue;
    FONT-FAMILY: 'Book Antiqua';
    background="#f7f7ff";
}

td#link a:link, td#link a:visited
{
text-decoration: none;
color: yellow;
}

  • 2 weeks later...
  Quote

style declarations should always be made in this order:

 

a:link, a:visited, a:hover, a:active

 

Is there a reason it should be in that order?  Just curious - totally new to CSS and want to learn the correct way first.  Thanks

 

Kevin

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.