Skip to content Skip to sidebar Skip to footer

Vertical Scroll In Select Html

Can you have a vertical scroll in select html,,, But keeping size='1' So when you click on the drop list it displays only around 5 options and the rest are viewed when you scroll.

Solution 1:

As a previous answer points out, there isn't good styling options for select dropdowns.

However, the good news is, the answer to your question "Can you have a vertical scroll in select html" is yes. It's there by default when you have enough options in the list. But changing that number seems impossible with css.

See demo here: http://jsfiddle.net/VxNV9/1/

But you could create a custom drop down in jquery/javascript and style it however you want.

Solution 2:

It is not possible to do in HTML. In SO, they have already discussed about this. Check It out Here.

May be there are other ways of achiving this through javascript or jQuery, with links on that page to some jQuery plugins which create a "fake" html select box that looks and behaves like one, but can have the height set.

Post a Comment for "Vertical Scroll In Select Html"