Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

size of submit button withn a table cell?

 
Tom Barns
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
How to manage and control the width and the height of a submit button inside a table cell,is ther anyway to do that.
Thanks alot.
 
xavier romea
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm afraid you cannot control the width and the height of any button in a HTML form.
But you could use an submit image instead of a submit button. Therefore, you could set the width and the height of the image.
 
Tom Barns
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the reply,would you please send me a sample code?
thanks.
 
xavier romea
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just replace <input type="submit" ...
by <input type="image" src="..." ...
 
Chris Stehno
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also use CSS to alter the dimensions of the button ...
<input type="button" value="Test Button" style="height:200;width:300;">
This should work in IE and NS6, maybe in older NS...
 
Tom Barns
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks alot guys
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic