-
I have a very simple table, containing a div that shows some smaller inner divs upon rollover. Just plain old CSS2, nothing fancy at all.
-
Works as expected in Chrome & Safari.
-
In Firefox 8, however, the :hover only works on the first TR – while the second TR is exactly the same.
-
Code has no validation errors.
-
Any ideas what might be causing this behaviour?
-
Working jsfiddle on http://jsfiddle.net/gNBSc/9/
I have a very simple table, containing a div that shows some smaller inner
Share
Firefox is not taking kindly to your applying
position:relativeto thetrs themselves (I am not sure why, did not have time to look it up). This has the effect of all yourdiv.hoverelements being stacked on the first table row (see it here, added borders to make it clear).As a workaround, you can wrap the contents of each
trin adiv, and applyposition:relativeto thatdivinstead of thetr.