English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Ok I'm getting my head round this CSS now. I've got one minor problem though...

I've got a few href links from various words on my page but Internet Explorer insists on underlining those links, and turning them blue (and purple when visited)
What can I do to stop this happening?

2006-12-05 04:53:31 · 4 answers · asked by crafty1980 1 in Computers & Internet Programming & Design

4 answers

Simply use the CSS code:
a:link,
a:hover,
a:visited{
color: #000000;
text-decoration: none;
}

That will change all "a" or anchor tags to black and no text-decoration.

Go to w3schools.com for more info too

2006-12-05 04:57:11 · answer #1 · answered by k alebdf 2 · 1 0

oo very simple solution to this thing... if you are using external css files or using css in the tag the thing to do is:

a {
color: #HEXCOL;
background:#HEXCOL;
text-decoration:none;}

a:hover {
color: #HEXCOL;
background:#HEXCOL;
text-decoration:underline;}

this will take away the underline but underline it when the mouse 'hover's over the link. You can also change other properties. If you do not want to change the background or foreground color then used the value 'inherit' this will keep the code CSS compliant with the W3C. Hope this helps and happy coding :)

2006-12-05 12:59:43 · answer #2 · answered by Anthony P 2 · 1 0

You simply get rid of the text-decoration attribute:

a:link, a:hover, a:visited, a:active {
text-decoration: none;
}

2006-12-05 12:55:42 · answer #3 · answered by Anonymous · 2 0

Read this short tutorial :)
http://www.echoecho.com/csslinks.htm

2006-12-05 12:55:40 · answer #4 · answered by Anonymous · 0 0

fedest.com, questions and answers