tags:

views:

542

answers:

2
A: 

Just try a css reset of submit button first (at the beginning of css file). For example margin, padding etc set to zero.

I am not quite sure how apply reset for submit buttons ..

but you can try following and test

/**
* Reset browser defaults
* Author: Tim Wright - csskarma.com
* Last updated: 04.19.2009
----------------------------------*/

body,div,dl,dt,dd,ul,ol,
li,h1,h2,h3,h4,h5,h6,
pre,form,fieldset,p,
blockquote,th,td          { margin:0;padding:0; }
body                      { line-height:1;color:#121212;background:#fff; }
h1,h2,h3,h4,h5,h6,p       { font-size:100%;font-weight:400; }
ol,ul                     { list-style:none; }
caption,cite,code,th      { font-style:normal;font-weight:400; }
fieldset,img              { border:0; }
caption,th                { text-align:left; }
:focus                    { outline:1px dotted #eee; }
table                     { border-collapse:collapse;border-spacing:0; }
hr                        { border:0;border-top:1px solid #555;margin:0;height:1px; }
label,button              { cursor:pointer; }

As per @Andrew's answer you can try * html input { overflow: visible; } also.

Wbdvlpr
What should this help? You mean remove the whole part `padding: 2px 2px 2px 2px;`? I already tried this, this doesn't have any effect on the outcome.
Juri
hmm...I don't see any style here that would apply on a button element. And moreover this would mean - if it would work - to inject this CSS to every web application we're developing which isn't desirable.
Juri
check the fist rule it applies to body .. {margin: 0 ; padding: 0;}so probably it'll cover buttons .. but I am not sure .. please test and let us know.
Wbdvlpr
As per @Andrew's answer you can try `* html input { overflow: visible; }` also.
Wbdvlpr
+3  A: 

This is an old bug. You need to add overflow:visible to the button. There is more here:

http://jehiah.cz/archive/button-width-in-ie

and here:

http://www.brandnewbox.co.uk/articles/details/removing_padding_from_ie_buttons/

Andrew Duffy
Thanks man! That's exactly what I was looking for. I should have done a more exhaustive Google search first :)
Juri
+ 1 this is also useful for me
metal-gear-solid