Hello i would like to know if there is a way i can use to control the height (not width which is controlled by size) of an input (submit) button in an html form?
| SitePoint Sponsor |


Hello i would like to know if there is a way i can use to control the height (not width which is controlled by size) of an input (submit) button in an html form?
On a PHP/Java/XML/Javascript/MySQL internship right now!

Code:input { height: 20px; /* or whatever you want it to be */ }
John Conde | Facebook | Twitter
Brainyminds Merchant Account Services I Love Code eBook Giant
Authorize.Net: AIM API | ARB API | CIM API Get the FREE code!
Merchant Accounts 101 | Ecommerce 101
I would use that or use <input type="image"> and have an image that makes that height.
HTMLGuy


when you do not specify a height, what settings does it use in FF and IE6+
On a PHP/Java/XML/Javascript/MySQL internship right now!




That depends ;-) It uses whatever the browser defaults happen to be. It's also dependent on font-size, and whether there is a user-stylesheet installed.
IME you're probably better off setting padding on the element, rather than height. That way the text doesn't try to escape from the button when the user makes it taller than your specifed height.
Olly Hodgson
thinkdrastic.net
Bookmarks