Last active
July 28, 2017 15:14
-
-
Save coreyrothwell/5726443 to your computer and use it in GitHub Desktop.
Fix stupid iPhone input zoom-in on focus. CSS only fix.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (max-width:480px){ | |
input, textarea { | |
font-size: 16px !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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) {... }