| hwg-techniques archives | Oct 2002 | new search | results | previous | next |
RE: CSS -- hover applied to a table cell?by "Brian V Bonini" <b-bonini(at)cox.net> |
|
> 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
|