When i use an html select box which has about 50 items, I get a very long list that fully appears. I would like to use scrollbars instead. how do I do that?
Drag the list object into the block. Select the block and in the properties pane, select "Size and Overflow". In the "Size and Overflow" window, set the desired dimensions of the block. Select the "Always use scrollbars" radio button.
When the number of options in a drop-down list is large, fixing the number of visible items may be useful. This can be done by using the “size” attribute of <select> tag.
Put your list inside a DIV tag and set the DIV style overflow:auto and the DIV's height to a fixed height.
You need to use CSS, specifically height and overflow:
CSS
.select{
height:100px;
overflow:scroll;
}
HTML
<select class="select"></select>
If you need anything more specific, ask!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With