I want to change the background of the <TD>
when the user hovers a link <a>
in the <td>
Part of my HTML:
<tr class="menuBarBottomSelected">
<td width="20%">
<a class="menuBarBottomUnselected" href="./url.php">Getting Started</a>
</td>
</tr>
This is my css:
.menuBarBottomSelected{
background-image: url('/auth/radius/submenu_bg.jpg');
background-repeat: repeat-x;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
color : #ffffff;
border-top:#666666 solid 1px;
}
tr.menuBarBottomUnselected td a:hover{
color:black;
background-image: url('/auth/radius/submenu_bg_hover.jpg');
background-repeat: repeat-x;}
The html is being generated so I am not sure why they would use the same class for the link and the td. I was able to assign a :hover on the link but only the background of the text changed not the whole <td>