When you have a simple element in a page and click it (hold down the mouse during click to see the effect) in IE8/9 then the button shifts a little down and to the right.
I'm assuming this is part of the default IE style. Is there anyway to prevent this behavior?
Put your text on a
<span>
andposition:relative
in it, it'll fix.No need for top and left definition.
You can apply some styles to the button. button{ margin: 0px; padding: 0px;}
If you don't mind using JavaScript, apparently this does the trick:
You can stop the text moving in IE button:
http://jsfiddle.net/dQVA7/