views:

74

answers:

3

I have a submit image button:

 <input id="sbutton" type="image" value="&nbsp;" />   

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 (wtf? :)) 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 :)

+1  A: 

Could it be an outline? Set:

 #sbutton:active,
 #sbutton:focus
 {
  outline: none;
 }

Try that out.

Kyle Sevenoaks
It's not a outline, I guess it's the default border for all inputs, border: none and outline: none doesn't change a thing O.o
fomicz
Do you have a live example? It might be inheriting some values from higher up the cascade. A screenshot would help too.
Kyle Sevenoaks
I'll upload it in a few minutes.
fomicz
Here you go: http://tinyurl.com/2ugzj6j It works ok in Opera, has border in Safari/Chrome O.o Firefox selects it when clicked. I guess input image isn't too well supported (?).
fomicz
Got a Polish 404: 404] File Not Found : Plik nie istnieje.
Kyle Sevenoaks
rofl, you have edited your solution after my answer and just copied it.
Happy
A: 

try border:none; rather than border:0;

Spudley
should make no difference
Litso
A: 

This is a right solution for this question:

:active, :focus { outline: none; }
Happy
didn't work for me
hubertg