Browser window does not crop <select> popup box


#1

Hi, I want the Bootstrap select popup box to display a scrollbar but my window does not crop the select popup box. Does anyone know what I am doing wrong?

This is my html:

<select class="form-control" style="height: auto;max-height:200px;"> <option>1/option> ... <option>20/option> </select>


#2

Styles on <select> only affect the button at the top. What you want is the size attribute for <select>, as discussed here.

Also, your HTML has messed up tags.


#3

thanks DamnedScholar. (I spelled the tags wrong in the post only.)