PDA

View Full Version : input button size


ScottInTexas
03-05-2003, 04:09 PM
I am trying to make all the buttons on my menu the same size but they default to the size of the length of the text plus some padding. As a result one is shorter than the other. I tried size="11" in the input tag but no luck. I also tried size:11; in the style sheet.

Any idea how to make this work?

redhead
03-05-2003, 04:16 PM
use style="height: 40px; width: 50px" or whatever.

Catman
03-05-2003, 04:20 PM
Better yet, use em or ex as the unit of measure -- using a fixed size such as px will cause undesirable effects should the user be using a different browser magnification.

ScottInTexas
03-05-2003, 06:01 PM
Thanks a lot.

I must have a link to outdated documentation on MS. The only option they had listed under input type=button was iSize that takes an integer value.

Again, thanks.

meow
03-05-2003, 06:37 PM
Scott, basically CSS doesn't care about what element you want to style. Only if it's a block level element or an in-line element (a little simplified).

msdn is good for some things but the spec is best for CSS info. :)
http://www.w3.org/TR/REC-CSS2/

The 'backdoor':
http://www.w3.org/TR/REC-CSS2/propidx.html
Note the 'Applies to' column.