How to change text color for link in tr element with CSS

Posted by mathee on Stack Overflow See other posts from Stack Overflow or by mathee
Published on 2010-04-29T06:26:00Z Indexed on 2010/04/29 6:27 UTC
Read the original article Hit count: 326

Filed under:
|

I'd like to change the background and text color when the mouse hovers over a row in a table:

tr {
  background-color:#FFF;
  color:#000;
}

tr:hover {
  background-color:#000;
  color:#FFF;
}

This works if there aren't any links in the tr elements, but when there are, the link color remains black (because of a { color: #000; }?). How do I specify in the CSS that links in the tr element should change color when the mouse hovers over the tr?

© Stack Overflow or respective owner

Related posts about css

Related posts about html