Button sizes

D

DaveG

I am trying to create a series of buttons all the same size, it seems that
if I use the default buttom in HTML <input type="button"> then the button
size is created with respect to the text in the value="" field. I have
tried to use the width="100" field to fix the button size but that did not
work the button stays the original size as set by value="". I know I can
create my own buttons of fixed sizes but I just need a quick method at
this point in time and was hoping to create standard size buttons from the
supplied tags.

Is this possible, is so how.

Thanks
 
T

Toby Inkster

DaveG said:
if I use the default buttom in HTML <input type="button"> then the button
size is created with respect to the text in the value="" field. I have
tried to use the width="100" field to fix the button size but that did not
work

Look at http://www.w3.org/TR/html401/interact/forms.html#h-17.4 -- it
clearly shows that the width attribute for <input> DOES NOT EXIST! That is
why it will not work.

In your HTML:
<input type="button" class="mybutton">

In your CSS:
..mybutton { width: 20em; }
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top