Credit Cards | Credit Cards UK | Loans | Contadores de visitas | Remortgages
CSS text-decoration: underline problem [Archive] - PCMech Forums

PDA

View Full Version : CSS text-decoration: underline problem


nickuss
01-12-2003, 05:52 AM
Hi, im having trouble with a little piece of CSS styling code. The code in question is:

"<STYLE type="text/css">

A:link { TEXT-DECORATION: none }
A:hover { COLOR: #FFCC99; TEXT-DECORATION: underline }
A:visited {TEXT-DECORATION: none}

</STYLE>"

the problem i have is the underline section in text-decoration. When you hover over the link, it only changes the colour and doesnt make it underlined. Its been frustrating...

Has anybody got any suggestions?

Thanks

Nickuss

(i'm using IE 6 SP1, if thats of any use)

nickuss
01-12-2003, 05:56 AM
sorry people, PCmech picked up the html code and didnt display it.

without the style tags or the {}'s, here is the code:

A:link TEXT-DECORATION: none
A:hover COLOR: #FFCC99; TEXT-DECORATION: underline
A:visited TEXT-DECORATION: none

Nickuss

mairving
01-12-2003, 08:07 AM
You need to also have an A with the same values as A:link.
Like A {text-decoration:none;}