Is it possible to highlight table row (something like this link text) without javascript (only css)?
+1
A:
Yes, a row is possible but not a column.
tr:hover {
background-color: lightyellow;
}
Emil Vikström
2010-10-24 07:08:40
+1
A:
If you don't care about Internet Explorer, the :hover CSS pseudo-class works with any element.
If you do care about IE, you can find a workaround here.
Frédéric Hamidi
2010-10-24 07:09:58
A:
Yes it's possible but you have to worry about browser compatibility here is an example
<style type="text/css">
.tbl {width: 640px;}
.tbl tr {background-color: Blue; height: 24px}
.tbl tr:hover {background-color: Red;}
</style>
<table class="tbl">
<tr><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr>
</table>
Pr0fess0rX
2010-10-24 07:21:06