Meaningless Drivel is fun!*
The moose likes Struts and the fly likes html:submit button size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:submit button size" Watch "html:submit button size" New topic
Author

html:submit button size

xiaoma wang
Ranch Hand

Joined: Mar 04, 2002
Posts: 74
Hell all,
I am using struts and one thing confused me is the html:submit button size. In the jsp page, i can not control the html:submit button size and it is determined by the character number showing on the button. How to control the button size? Could people give me some idea?
Appreciate very much!
Xiaoma Wang
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 565
Actually it is purely a HTML issue, not struts. You can give the html:submit tag all the normal HTML attributes you wish, such as style or css-class.
Try using assigning the button a style and using the width: and height: properties with px values.


I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
xiaoma wang
Ranch Hand

Joined: Mar 04, 2002
Posts: 74
Hi, adam:
I solved this problem using javascript. Thanks your reply. Actually, I can not find a way to change the html:submit button size, either css or style.
Xiaoma Wang
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:submit button size
 
Similar Threads
How to resize an image over button in an html depending upon the text over it.
Alignment of button
I want to submit the button but not refresh the page
How to resize an image dynamically in an html
size of JButton