Created
December 16, 2013 16:50
-
-
Save RyanWarner/7990226 to your computer and use it in GitHub Desktop.
When defining input width on mobile, you have to set box sizing to border-box or it won't work.
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
input{ | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
width: 200px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://stackoverflow.com/questions/5615980/mobile-safari-text-input-width-bug