HTML table highlight row on hover except first row (header)
There is a way to achieve the desired behavior without class-ing each row separately. Here’s how to highlight each table row except for first one (header) on hover using the CSS :not and :first-child selectors: tr:not(:first-child):hover { background-color: red; } Unfortunately, IE < 9 does not support :not, so to do this in a cross-browser … Read more