iPhone input zoom fix – works on iOS9

/* prevent iphone from zooming in when filling out a form, like login or application */
@media screen and (-webkit-min-device-pixel-ratio:0) { 
  select,
  textarea,
  input,
  input:focus,
  input:hover {
    font-size: 16px !important;
  }
}
Published
Categorized as Apple

2 comments

  1. It should work with 16px or larger. iOS, by default, will zoom on inputs when the font size is < 16px to maintain legibility.

Leave a comment

Your email address will not be published. Required fields are marked *