Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

combo box

Posted on 2003-12-12
5
Medium Priority
?
3,490 Views
Last Modified: 2010-05-18
When combo boxes are set using 'width:300px', they all look tidy, but when they are populated with data of different length, some data gets cut short in drop-down. However, without the width setting, combo boxes get expanded and out of control when the data populated. What can I do to keep them look tidy but all the data can be shown in drop-down.
0
Comment
Question by:luotuo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 17

Expert Comment

by:dorward
ID: 9926820
There is no such thing as a combobox in HTML. I suspect you mean a select element, which is often rendered as a drop down list (a combobox is a dropdown list combined with a text box so the user can pick an option or type their own).

The only solution is to avoid excessivly long option labels.

You could also consider switching from a select element to a series of radio buttons. Radio buttons are more flexible when it comes to layout.
0
 

Author Comment

by:luotuo
ID: 9927109
Thanks.

Well, I cannot really do that as there are 6 drop-down lists on my jsp web page, and each of them is populated with data from database, and each of them may hold about more than 10 records.  Is there some sort of horizontal scrollbar to those drop down lists?
0
 
LVL 17

Accepted Solution

by:
dorward earned 375 total points
ID: 9927124
Browser dependent.   select { overflow: auto; } might work on some, but I doubt it.
0
 

Author Comment

by:luotuo
ID: 9927174
I doubt it too. But will give it a go anyway.

Thank you very much!
0
 

Author Comment

by:luotuo
ID: 9927211
Would you pls change my grade to this question to A. It page processed before I could change my choice.

Thanks.

http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_20823847.html#9926820
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question