I'm currently using a select
element to choose options from a dropdown list, but because of the large number of items, the list displays in an upward direction instead of downwards. I am working with Bootstrap.
I have reviewed other code samples without success.
<div class="select-style" style="display: inline-block;">
<select id="year">
<option value="hide">-- Year --</option>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
<option value="2013">2013</option>
<option value="2014">2014</option>
<option value="2015">2015</option>
<option value="201">2011</option>
<option value="2015">2015</option>
<option value="201">2011</option>
<option value="202">2012</option>
<option value="203">2013</option>
<option value="204">2014</option>
<option value="205">2015</option>
<option value="202">2012</option>
<option value="203">2013</option>
<option value="204">2014</option>
<option value="205">2015</option>
</select>
</div>
https://i.sstatic.net/eRESs.jpg
When there are many options in the menu, this selection moves upwards instead of downwards. My objective is for it to display in a downward manner.