Hi
I have a number of links contained within the TD element of a TABLE. I'm using CSS to make the text link change color on mouseover. What I'm wondering is whether I can make the background colour of the whole TD cell change colour on a mouse rollover rather than just the background colour behind the text itself. I would like to keep the text hyperlink (rather than use images as links). The code I've got so far is as follows:
Hope this makes sense and any advice or help would be very much appreciated
Mike
I have a number of links contained within the TD element of a TABLE. I'm using CSS to make the text link change color on mouseover. What I'm wondering is whether I can make the background colour of the whole TD cell change colour on a mouse rollover rather than just the background colour behind the text itself. I would like to keep the text hyperlink (rather than use images as links). The code I've got so far is as follows:
Code:
<STYLE>
a.MainLink
{
color: #666666;
font-family: Arial;
font-size: 9pt;
text-decoration: underline;
background-color: #CC9933;
}
a.MainLink:hover
{
color: #999999;
font-family: Arial;
font-size: 9pt;
text-decoration: none;
background-color: #FFCC66;
}
</STYLE>
<BODY>
<TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=0>
<TR>
<TD WIDTH=20% BGCOLOR=#CC9933 ALIGN=CENTER>
</TD>
<TD WIDTH=10% ALIGN=CENTER BGCOLOR=#CC9933>
<A HREF="" CLASS="MainLink">Home</A>
</TD>
<TD WIDTH=70% BGCOLOR=#CC9933 ALIGN=CENTER>
</TD>
</TR>
</TABLE>
Mike