Skip to content

Instantly share code, notes, and snippets.

@coreyrothwell
Last active July 28, 2017 15:14
Show Gist options
  • Save coreyrothwell/5726443 to your computer and use it in GitHub Desktop.
Save coreyrothwell/5726443 to your computer and use it in GitHub Desktop.
Fix stupid iPhone input zoom-in on focus. CSS only fix.
@media (max-width:480px){
input, textarea {
font-size: 16px !important;
}
}
@mkrishtopa
Copy link

This will apply to all devices. Try this solution to target just iphones:
@media screen and (-webkit-min-device-pixel-ratio:0) and (max-device-width:1024px) {... }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment