Solved

Dropdown list Items

Posted on 2009-07-06
1
149 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
Comment Utility
Try using em units.

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

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
This video discusses moving either the default database or any database to a new volume.

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now