Is it possible to highlight table row on hover (something like this) using CSS only (without JavaScript)?
How to color specific row in a CSS Table. You can use the tr:nth-child(rownumber) to color a particular row in a table using CSS. Above code select the 3 row from top (including table head row) and color background as green and foreground as white.
Yes, a row is possible but not a column.
tr:hover { background-color: lightyellow; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With