Results 1 to 8 of 8
11-17-2002, 11:29 PM #1
Want scrollbar to appear after 5 items are dispalyed in combo box
How can you specify the maximum number of items to be displayed in a combo box before a scrollbar appears?. IE has a default of 8 items but Netscape 4.x displays around 20 items before the scrollbar appears. I would like the scrollbar to appear when more than 5 items are displayed. I am using CSS to style my form elements.
11-18-2002, 01:50 AM #2
do u mean a drop down menu? (<SELECT>)
Last edited by Doorknob; 11-18-2002 at 01:54 AM.
11-18-2002, 01:56 PM #3
If it is <select>, then use size -
<select size="5" name="badger"> <option value="test">tester</option> <option value="test">tester</option> <option value="test">tester</option> <option value="test">tester</option> <option value="test">tester</option> <option value="test">tester</option> </select>
11-18-2002, 06:24 PM #4
To clarify.... when you click on the drop down arrow of the combo box, it would be great if the drop-down list area size could be set to 5 items long. The user can then just use the scrollbar to scroll through the rest of the items on the list.
Thanks for the help,
11-18-2002, 06:36 PM #5
Ariel (and us other lurkers) is looking for something like:
<select size="1" MAX="5" name="badger">
where the "MAX" would be the attribute holding the size of the box which pop-ups or down. It'd be nice to even have the up or down direction controllable by something like DIRECTION="up". Have we finally stumped you?
11-18-2002, 07:20 PM #6
11-19-2002, 02:07 PM #7
Daves link is the best solution. The only specced attributes are size, multiple and tabindex.
I guess you guys beat me
11-19-2002, 07:00 PM #8
Dave, thanks for the great link to the combo box example.
QuietDean, thanks for clarifying my question. I can sure use that HTML link you provided.