Forum Moderators: not2easy

Message Too Old, No Replies

Hyperlink styles not working

As if no styles were applied at all.

         

groucho

3:22 pm on Feb 13, 2004 (gmt 0)

10+ Year Member



Class "banner" is contained within td tag. I've undoubtedly blundered, but cannot see where.

a.banner:link {color: #ffffff; background-color: #000099; border: 0 none;text-decoration: none; }

a.banner:visited {color: #ffffff; background-color:#000099; border: 0 none;text-decoration: none; }

a.banner:hover {color: #ffcc33; background-color: #000099; border: 0 none; text-decoration: none; }

a.banner:active {color: #fffffff; background-color:#000099; border: 0 none;text-decoration: none; }

Gibble

3:30 pm on Feb 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Stupid question, but your anchor <a> contains an href attribute correct? Because if it doesn't, the styles won't apply.

Stratus42

3:41 pm on Feb 13, 2004 (gmt 0)

10+ Year Member



Hi!

I think that when you're applying styles to <A>'s you need to actually put them in the anchor tag.. so...
<td class="banner"><a href="foo.htm">foo</a></td>
will not display as you want...

but

<td><a href="foo.htm" class="banner">foo</a></td>

should

:-)

Cheers

groucho

3:48 pm on Feb 13, 2004 (gmt 0)

10+ Year Member



That was it! -- duh... Not putting the class within the right tag.

Thanks to you both for your response!