Reputation: 289
I'm using the following css to highlight my data rows
tr:hover{
background-color:grey;
}
but this highlights the table header as well.
I tried
.notfirst:hover{
background-color:grey;
}
but that prevents anything from highlighting. Is there a simple css fix to this?
Upvotes: 2
Views: 52
Reputation:
Use this CSS:
tr:hover:not(:first-child) {
background-color:grey;
}
Upvotes: 3