Browser window does not crop <select> popup box


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>


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.


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