Some browsers don't allow certain properties of form elements to be styled. An alternative it to use:
<input type="image" src="path" />
...and create an image of the exact button you want.
Thanks, I don't think it's that, though. It's letting me size this item. It's always increasing the size that I specify, though. It seems to be adding 10 pixels to any width I pass in.
Really? - How about at the extreme?
I'm no gfx guy but isn't this maybe a dpi thing?
Could it be the text within the button making it stretch?
Experiment by explicitly defining:
Something to toy with, anyway.
Damn! - I glanced at the code but didn't really take it in!
Birdmans quite right of course. Well, more likely right than I am ;) - I thought it was a graphical button!
It's the border attribute that's affecting it. Investigating further...
If you are mixing inline styles with an external style sheet, I've been finding some bugs throughout different browsers. Try moving the style into the external sheet and make a class for the input button.
P.S. Actually had my first site that passed the Mac browser test without any tweaking just last week. All css and not one thing had to be adjusted, Woohoo!
Problem is, as soon as I mess with border-width, I lose the nice styled border. And I don't think there's a border-style setting for "that nice default border".
Seems like the only way to handle this, if I want both the "native" button and the exact same button size across browsers/platforms, is with a browser conditional. Sigh.
You have ten attributes that you could apply to the border-style.
I believe it is the outset one that will give you that button appearance you are looking for. I typically don't mess around much with button styles, most are used to seeing the default gray. I will of course css the font so it doesn't look out of whack with the rest of the content.
While "outset" works as a lineŽbutton style, I don't like the way it is interpreted cross-browser, especially when you get to >2px thickness. Also, the highlight & shadow values are different between browsers making it difficult to ensure everything adheres to the palette scheme one has chosen.
Another factor affecting button size is line-height. We often define font sizes without realizing that we are also affecting line height which can be interpreted differently. If I am styling button text I always specify both font-size and line-height explicitly.