aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Multiple Selection boxes of same width Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Multiple Selection boxes of same width" Watch "Multiple Selection boxes of same width" New topic
Author

Multiple Selection boxes of same width

Anne Forumer
Ranch Hand

Joined: Apr 19, 2004
Posts: 72
I have multiple selection boxes placed verically in a table column. Each selection box has widely varying width of content. So they are showing up with widely different widths! Is there a way to make each selection box of same width irrespective of their content width? I don't care if some of the entries don't show in their entirety.

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56192
    
  13

Use the CSS width attribute.

For example, to apply the same width to all select elements on a page, place this in the header:



If you only want to apply the style to a set of elements you can get more particular with the selector.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple Selection boxes of same width
 
Similar Threads
Problem with BoxLayout and JTextField
Menu with multiple selection?
Multiple Drop Down Boxes With same name
ajax and jsp
checking user input?how to go about it ?