View Full Version : Link Help


Savannah_W
07-13-2009, 05:03 AM
I've been trying to get my links to change colors and underline them. But the code I found on the site isn't working. This is what I'm doing:

A:link
text-decoration: value; [overline] color:#000000;
A:visited
text-decoration: value; [overline] color:#000000;
A:active
text-decoration: value; [overline] color:#000000;
A:hover
text-decoration: value; [line-through] color:#000000;

Is this right? Where do I place it? Im just so confused :(

Girl
07-13-2009, 01:49 PM
<style>
a:link {text-decoration: overline; color:#000000;}
a:visited {text-decoration: overline; color:#000000;}
a:active {text-decoration: overline; color:#000000;}
a:hover {text-decoration: line-through; color:#000000;}
</style>

It goes in between <head> and </head>

Joseph Witchard
07-15-2009, 10:28 PM
And if you want to save typing:

<style type="text/css">
a:link, a:visited, a:active { text-decoration: overline; color: #000000; }
a:hover { text-decoration: line-through; color: #000000; }
</style>

iGeek
07-18-2009, 09:35 PM
As it hasn't been stated before, your problem was that the values in the [brackets] are possible values, meaning you should have replaced the word in brackets with the word value.