Monday, 16 February 2015

Simple CSS-Only Row and Column Highlighting

Highlighting rows of a table is pretty darn easy in CSS.tr:hover { background: yellow; } does well there. But highlighting columns has always been a little trickier, because there is no single HTML element that is parent to table cells in a column. A dash of JavaScriptcan handle it easily, but Andrew Howe recently emailed me to share a little trick he found on StackOverflow

No comments:

Post a Comment