Controlling HTML SELECT Vertical Scroll BarsSep 18, 2007
The problem I'm trying to solve is that the
designer would like to limit the total number of entires shown when
you click on the drop-down arrow of a select box. I'm starting to
think that this isn't possible.
I've tried the following with no luck:
- Setting the height attribute on the select element
- Setting a style height for the select attribute
- Setting the style overflow-y to scroll
- Setting the size of the select element
At some point in my browsing someone claimed that the vertical scroll
bars are controlled by the OS/Browser and there are no ways to change
this using JS or CSS. That the magic number of IE is 30 entries before
the vertical scroll bar shows up.