[thelist] simple css help
Casey
aspnet at thecrookstons.com
Fri Oct 28 11:24:20 CDT 2005
Ok this should be an easy one. I have a <td> in which i want to swap bg
colors and font colors on mouseover. Everything works great until you try
to make the text in the td a link.
Below is the code w/o a link that works great. But, make 'text' a link, and
it all falls apart. What's the correct css to keep it working?
Thanks!!!
<style type="text/css">
.tdback {
background-color: #323E3E;
color: #BEB778;
text-decoration: none;
}
</style>
<table border="1">
<tr>
<td class="tdback" onmouseover="this.style.color='#323E3E';
this.style.backgroundColor='#BEB778';"
onmouseout="this.style.color='#BEB778';
this.style.backgroundColor='#323E3E';">
<br>
text
<br><br>
</td>
</tr>
</td>
More information about the thelist
mailing list