I have a table styled like this: http://jsfiddle.net/naveen/SGQBF/
On hovering the trs, I would like to show a bullet at the first td or tr.
This is working as expected in Firefox. But in Chrome the bullet is being shown at every td.
My questions are
Changed your rules to this:
.datatable tr.row:hover , .datatable tr.altrow:hover{
color: #000;
background-color: #FFFACD;
/* remove background image */
}
.datatable tr.row:hover > td:first-child, .datatable tr.altrow:hover > td:first-child {
background-image: url(http://quenshsolutions.ie/Images/bullet.gif);
background-repeat: no-repeat;
}
I think that's a bug.
Here is a work-around.
.datatable tr.row:hover, .datatable tr.altrow:hover {
background-color: #FF0000;
color: #000;
}
.datatable tr.row:hover td:first-child, .datatable tr.altrow:hover td:first-child {
color: #000;
background-color: #FF0000;
background-image: url(http://quenshsolutions.ie/Images/bullet.gif);
background-repeat: no-repeat;
background-position: top left
}
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