aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes size of  submit button withn a table cell? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "size of  submit button withn a table cell?" Watch "size of  submit button withn a table cell?" New topic
Author

size of submit button withn a table cell?

Tom Barns
Ranch Hand

Joined: Oct 27, 2000
Posts: 138
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.


Thanks for your help.
xavier romea
Ranch Hand

Joined: Jun 28, 2001
Posts: 37
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

Joined: Oct 27, 2000
Posts: 138
thanks for the reply,would you please send me a sample code?
thanks.
xavier romea
Ranch Hand

Joined: Jun 28, 2001
Posts: 37
just replace <input type="submit" ...
by <input type="image" src="..." ...
Chris Stehno
Ranch Hand

Joined: Feb 26, 2001
Posts: 180
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...


- Chris Stehno, SCPJ
Tom Barns
Ranch Hand

Joined: Oct 27, 2000
Posts: 138
thanks alot guys
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: size of submit button withn a table cell?