RE: CSS -- hover applied to a table cell?

by "Brian V Bonini" <b-bonini(at)cox.net>

 Date:  Mon, 14 Oct 2002 09:22:38 -0400
 To:  "Jeniffer C. Johnson" <lead(at)offlead.com>,
<hwg-techniques(at)hwg.org>
 In-Reply-To:  offlead
todo: View Thread, Original
 
> What I don't know is how -- or even if -- I can apply a style
> definition to
> a table cell on hover, to be triggered by the link within said cell.
> Doable? No?

Yes, here's one possibility:

td.menu {
    color: #01673D;
    background-color: #D3C798;
}

a.menu:hover {
    color: #FF7D00;
}

<td class="menu" onmouseover="this.style.backgroundColor='#01405A'"
onmouseout="this.style.backgroundColor='#D3C798'"><a href="xxx.xxx"
class="menu">xxxx</a></td>

-Brian