HTML/CSS help

Soldato
Joined
3 Apr 2007
Posts
9,984
Hi, a bit stuck. I have a table which when hovered over, changes colour, from black to white. The text also changes, from white, to black. However I want to add a link in said table but after adding some a:hover, active etc. it will only do one colour.

Sorry if it's confusing. Here is the code.

Code:
<tr>
    <td >&nbsp;</td>
    <td class="below_header" onmouseover="this.className='below_header_hover'" onmouseout="this.className='below_header'">&nbsp;<strong>TEXT</strong> - <a class="header_text" href="#">TEXT</a></td>
    <td >&nbsp;</td>
  </tr>

Code:
td.below_header{
	background-color: #000000;
	height: 35px;
	color: #FFFFFF;
	padding: 5px;
}
td.below_header_hover{
	background-color:#FFFFFF;
	color:#000000;
	padding: 5px;
	height: 35px;
}
a.header_text:active,a.header_text:visited,a.header_text:link,a.header_text:hover{
	text-decoration:none;
	color: #FFFFFF;
}

Thanks for any help
 
Back
Top Bottom