| Author |
IE7 drop down problem
|
ReachVijay kumar
Greenhorn
Joined: Jun 20, 2009
Posts: 1
|
|
Hi
I have a drop down list box which has some 15 items in it, by which we can select only one item at a time. In IE6 the items in the drop down are appearing fine with a scroll bar coming in after click on items. But in IE7 all the items in the drop down list are appearing with out a scroll bar, due to which drop down is appearing in a bigger size.
Some where in google it was written that, by default in IE7 drop down is having fixed size of 30. If that is the case, is there any way that we can change it and reduce the size, so that dispalyed items will appear in scroll bar or is there any way that we can use css and change it.
Any help on this will be useful
Thanks
Vijay
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26144
|
|
Vijay,
Welcome to JavaRanch!
Have you tried using the "width" attribute in CSS?
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
|
You can not change the number of elements that appear in the options in the select element w/ scrollbar.
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26144
|
|
|
Of course not. I thought the original posted meant a horizontal scrollbar. Upon re-reading the post, your interpretation makes much more sense!
|
 |
Andy Crane
Greenhorn
Joined: Dec 30, 2008
Posts: 17
|
|
The only way is to make it a multi-select, then you define the number of options that display at one time, but they're always there, not just displayed on clicking the arrow and the user can select more than one.
That being said, I'd bet that someone, somewhere, has gotten all creative on this and came up with a jquery workaround.
|
- andy c
"Pseudo code first. If you can pseudo code accurately, when you start writing code, you're just applying syntax to the pseudo code. It separates the two most complicated pieces of programming into manageable bites. You create your app's workflow without worrying about syntax. Then you code without worrying about your app's workflow."
|
 |
 |
|
|
subject: IE7 drop down problem
|
|
|