This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes making buttons of same size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "making buttons of same size " Watch "making buttons of same size " New topic
Author

making buttons of same size

Dattatray Sutar
Ranch Hand

Joined: Jul 12, 2006
Posts: 46
Hi ranchers!.

I m using LookUpDispathAction and using Applicationresources.prop key-value for the Button names by <bean:message..../> but the buttin size is depending on the text value.. e.g. ok buttn has smaller size then Cancel. I want 2 make both of same size. i tried like html giving space adjustment for the ok button..its ok in html but not working for Struts lookUpDispathAction...any solutions plz....

Thanks in advance.


with regards<br />Datta.<br /> <br />To the world you might be one person, but to one person you just might be the world !
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
You can control the size of a button with CSS.

<html:button style="width:75" />


Merrill
Consultant, Sima Solutions
Dattatray Sutar
Ranch Hand

Joined: Jul 12, 2006
Posts: 46
Thanks a lot..it worked ..bye
Originally posted by Merrill Higginson:
You can control the size of a button with CSS.

<html:button style="width:75" />
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: making buttons of same size
 
Similar Threads
JavaScript in JSP
How can I encrypt the password using j_security_check?
Preselect Radio Button (Default Value) - Struts2
Form validation
Check file size with Javascript before uploading