On 7/12/05, Scott Haneda <[EMAIL PROTECTED]> wrote: > on 7/11/05 6:02 PM, Richard Grevers at [EMAIL PROTECTED] wrote: > > > On 7/12/05, Scott Haneda <[EMAIL PROTECTED]> wrote: > >> .tRow:hover { > >> background: #FFD; > >> border: 1px solid #EFE; > >> color: 3F0; > >> } > >> > >> I use the above CSS on a table, when you hover over the <tr> it changes the > >> background to yellow, but the links inside it are not getting the color > >> change to green that I am wanting, unless of course, you are right over the > >> text, which I do not want. > >> > > You need to apply display:block to the links to achieve that. (And > > possibly a width: 100%). > > That green is incredibly hard to read IMO. > > I don't get to pick the colors :-) > How is adding display: block to the links, which are not even hovered over, > going to do anything for me, it is the tr that is hovered, and when that > happens, I want the color: to change.
It causes the link to occupy the whole of the td, which in turn occupies the whole of the tr. In fact, with the links as blocks you can probably set the hover style on a rather than tr, with the added benefit that it will now work in IE. It may be necessary to define height, width or padding to get the a's the way you like them. -- Richard Grevers New Plymouth, New Zealand Orphan Gmail invites free to good homes. ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/