The dropdown menu I created using an HTML select tag contains a total of 152 options. However, the large number of options causes some of them to be out of view on most monitors when the size is set to 152. I attempted to limit the number of displayed options by setting the max-height of the select to 100%, believing that it would restrict the size to fit within the div. Despite my efforts, all 152 options are still being shown, with some extending beyond the visible screen.
<select name="school" size="152" style="max-height: 100%;">
...
</select>
I am wondering if there are ways to make select tags display as many options as possible on the screen (with 100% height), while also enabling scrolling to access any options below the screen (exceeding 100% height)?