Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:submit button size

 
xiaoma wang
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
xiaoma wang
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic