Prevent iPhone from zooming in on `select` in web-app
Solution 1:
It is probably because the browser is trying to zoom the area since the font size is less than the threshold, this generally happens in iphone.
Giving a metatag attribute "user-scalable=no" will restrict the user from zooming elsewhere. Since the problem is with select element only, try using the following in your css, this hack is originally used for jquery mobile.
HTML :
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
CSS:
select{
font-size: 50px;
}
src: unzoom after selecting in iphone
Solution 2:
user-scalable=no is what you need, just so there's actually a definitive answer to this question
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
Solution 3:
This seemed to work for my case in addressing this issue:
@media screen and (-webkit-min-device-pixel-ratio: 0) {
select:focus, textarea:focus, input:focus {
font-size: 16px;
}
}
Suggested here by Christina Arasmo Beymer