Link to home
Start Free TrialLog in
Avatar of siyu
siyu

asked on

How to add a horizontal scrollbar to a select list?

I dynamaically generate a dropdown list with fixed width, some records are long, I need a horizontal scrollbar to to view whole records. I use IE. How can I do this?
Please help.
Avatar of venkateshwarr
venkateshwarr

No you canno do that.
If you want to do something like that... you have to use DHTML and create a user defined menu like structure..
Avatar of siyu

ASKER

Hi Venkateshwarr,
Can you give me an example or some online links about how to do it by using DHTML?
Thanks!
Avatar of seanpowell
No points for me, as I haven't had a chance to see how cusomtizable this guy's code is...

This is one example of a dhtml select box:
http://webfx.eae.net/dhtml/select/jsGenerated.html
Dont think putting a scroll bar on a dropdown is possible.  

Better to design without fixed width, allow for longer entries, and validate new records to allow a maximum number of chars.

OR

Dive deep into new territory, your new code may help future coders.

ASKER CERTIFIED SOLUTION
Avatar of seanpowell
seanpowell
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of siyu

ASKER

Thank you, it works.