Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

width=? height?cmd button 1

Status
Not open for further replies.

juandiegomc

Programmer
Apr 25, 2003
60
US
Hello,

what is the code to make all the command buttons the same height and width?

<center><input type=&quot;button&quot; value=&quot;Home page&quot; onclick=&quot;document.URL='index.html';&quot;>

Thank you.

juandiegomcc@afirmacion.com
 
juandiegomc, I guess <input type=&quot;button&quot; value=&quot;Home page&quot; width=65 height=50 onclick=&quot;document.URL='index.html';&quot;> should do it??
There isnt a norm for one size for a submit button, its whatever size the site might call for...

I have this little thing, Advanced Delusionary Schizophrenia with Involuntary Narcissistic Rage. It's no big deal really...
 
Actually, height and width are not acceptable attributes for the input tag. Use CSS to resize buttons:
[tt]
<input type=&quot;button&quot; value=&quot;Home page&quot; style=&quot;width:100px; height: 50px;&quot;>[/tt]

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Gujum0del,

I used the same: <input type=&quot;button&quot; value=&quot;Home page&quot; width=65 height=50 onclick=&quot;document.URL='index.html';&quot;>

but does not change the width of the command button? I have different words on each command and they all change the width by the word on the label? Any ideas?

juandiegomcc@afirmacion.com
 
juandiegomc, then I guess dwarfthrower's idea would work better. Use CSS. Either use the above example, or do a google.com search for CSS properties for more examples.

I have this little thing, Advanced Delusionary Schizophrenia with Involuntary Narcissistic Rage. It's no big deal really...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top