Is this possible?
My code works on Firefox. I can also get webkit to change other properties (e.g. background color, etc.) on hover, but the box shadow doesn’t take effect:
tr:hover {
-webkit-box-shadow: 0px 2px 4px #e06547;
-moz-box-shadow: 0px 2px 4px #e06547;
box-shadow: 0px 2px 4px #e06547;
background-color: #d4d5d6;
}
As answered here: https://stackoverflow.com/a/11002077/1106393 rather than styling
tryou should style thetd-element in combination with the pseudo classes:first-childand:last-child. Prependingtr:hoverwill do the trick for you:Demo 1 with inset: http://jsfiddle.net/Kk6Th/
Update:
Demo 2 without inset (classic drop shadow): http://jsfiddle.net/2nw4t/1/
Demo 3 without inset (glow effect): http://jsfiddle.net/2CSuM/