I have encountered the same behaviour in IE. As far as I know, the only way to prevent that behaviour is to set the button border property to none - not ideal as that obviously effects the style of your button.
A:
BrynJ
2008-11-16 15:20:04
+3
A:
CSS:
input:focus,
input:active,
input:hover
{
outline: none;
border: 1px solid;
}
No guarantees, but that is supposed to stop IE being stupid.
You should extend the above style a little, for instance, change background color or border color to give an alternative change indicating focus.
( press tab, you'll see it move ;) , the additional style is an indicator showing what action will be performed upon pressing ENTER )
Kent Fredric
2008-11-16 15:50:13
Why is IE being stupid? It's just following standard Windows UI conventions.
John Topley
2008-11-16 15:53:12
@John, yay, but which comes first, W3C, or windows, ?
Kent Fredric
2008-11-16 16:14:07
@Kent - Where do the W3C specify what submit buttons should look like?
John Topley
2008-11-16 17:09:43