Solved

Dropdown list Items

Posted on 2009-07-06
1
151 Views
Last Modified: 2012-05-07
I have a dropdown list that is dynamically populated.

I need to set the height of the dropdown area...when clicked...to x number of items.

Size="10"  shows the ddl expanded and 10 items shown with a scrollbar
ddlCountry.Attributes.Add("Size", "10")  does the same thing

ddlCountry.height=10 maxes the ddl 10 px high...

I need it default height...
When clicked on it has to show 10 items with a scrollbar to see the rest.
0
Comment
Question by:lrbrister
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 24790768
Try using em units.

The amazing em unit and other best practices
http://www.w3.org/WAI/GL/css2em.htm
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

831 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