I'm trying to find a reasonable CSS style for highlighting a particular table row (i.e. on a click selection) that doesn't involve changing the background color, because the row colors already serve a purpose in my application.
This probably means making the border stand out or doing something to the background that doesn't change its color. I've tried the following
border: 2px ...
withmargin: -2px
or something like that. However, it doesn't display too well, especially when the table is scrolling, and doesn't offer a good highlight without a super thick border. Browser support of borders on<tr>
elements also isn't great.outline: 3px ...
only seems to display on the top and bottom when the div containing the table is scrollable.box-shadow: 5px 5px ... color inset
doesn't seem to display properly without messing up the table.
Does anyone have any good CSS suggestions for how to achieve this?