Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to set the size of a button

 
Narasimha Raju Naidu
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi to all

i want to set a fixed size to a button which is not expand or not reduced based on the value. is it possible

regards
 
Roger F. Gay
Ranch Hand
Posts: 408
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is possible if you use an image.

<input type="image" src="vxhtml.gif" alt="sized button" Height=100 Width=100 />

In simple web-browser buttons, you can adjust width with spaces, if you for example want a row of buttons to be the same width.

value=" Home "

You can try adjusting the font style property if you want some other height.
[ April 22, 2007: Message edited by: Roger F. Gay ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65221
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Specify the size using CSS.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic