I am trying to create select input in iOS. The first option or initial state should have a smaller font size, but not the rest of the options.
I have the following html structure:
<select class="dropdown"> <option selected="" value="Navigation">Navigation</option> <option value="some-link">Whatever</option> <option value="some-link">Another option</option> <option value="some-link">Why</option> <option value="some-link">What</option> </select>
My CSS for this looks like this:
select { -webkit-appearance: none; font-family: 'Custom-Font', sans-serif; font-size:.5em line-height:1.8em; // optical center background-color:
The <select> menu looks as if I want it to look. He says “Navigation” inside a light gray square with a small font size.
However, when I press / press select on my iphone, the native iOS user interface displays all the parameters in a very small font size too.
How can I just make the selected parameter (or the window itself) use custom formatting, but not the parameters. I want my options to have a “regular” readable font size.
Any ideas on this? I tried with option:not(:first-of-type) and increased the font size, but without effect!
matt
source share