I want to change the background color and text 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 are no links in the tr elements, but when there is, the link color remains black (due to a { color: #000; } ?). How to indicate in CSS that links in a tr element should change when the mouse hovers over tr ?
html css
user5243421
source share