I would like to display several options under each other, just like in desktop browsers.
<select size="10" name="selectionList"> <option value="5">Sparrow</option> <option value="18">Snowbunting</option> <option value="13">Purple-crowned Fairywren</option> <option value="19">Eagle</option> <option value="16">Hawk</option> </select>
In any standard desktop web browser, these elements are displayed below each other with a potential scroll bar on the left side. However, on Android and iOS browsers, only the selected item is selected, and the rest of the selected space is lost. When you try to select, the options menu dialog is displayed.
Usually, since I specify size = "10", up to 10 elements should be displayed at a time. I can understand why they decided to implement it the way they did, but I hope there is a simple CSS trick to change the default behavior.
How can I get the mobile browser to display my selection in the same way as desktop browsers without presenting the options menu dialog.
source share