Strange hover problem in IE8 & 10, about which I can't find anything... Surely, I'm not the first to stumble upon it?
HTML:
<a href="#"><img style="border:0" src="image.png">Text</a>
CSS:
a {border:1px solid silver}
a img {margin-right:30px}
a:hover {border:1px solid red}
In IE, when I hover the mouse over the image or the text, the border changes to red as expected, but when I move the mouse over the space caused by the margin-right
, the border returns to gray.
In Firefox, the border always stays red wherever the mouse is over the <a>
.
Since the problem is reproducible on jsFiddle, it's not caused by a bad <DOCTYPE>
...