I have a submit image button:
<input id="sbutton" type="image" value=" " />
Styled like that:
#sbutton {
text-indent: -99999px;
border: 0;
background-image: url('submit.png');
width: 201px;
height: 37px;
}
It works perfect in Opera in Firefox the button size is about 10x10px
and in Safari and Chrome it has some kind of strange border (like iframes
have), and I have no idea how to get rid of that?
Thanks :)
This is a right solution for this question:
Try:
rather than:
Could it be an outline? Set:
Try that out.
Apparently this happens for image inputs with no src attribute. You can give it an src, as in this post:
input type="image" shows unwanted border in Chrome and broken link in IE7
OR, you could just use a type="submit" input instead of type="image", if you're setting the background image anyway.
Changed type from image to submit as I was using a background image in CSS and this fixed my issue.