4 ms·
Viewport "bug" is a "feature" in iOS—change the textarea's font-size to 16px to override the auto-zoom.
by tillinghast 11y ago
Viewport "bug" is a "feature" in iOS—change the textarea's font-size to 16px to override the auto-zoom.
- gideon_b 11y agoThis works very well: @media screen and (-webkit-min-device-pixel-ratio:0) { select:focus, textarea:focus, input:focus { font-size: 16px; } } It uses a css selector only available on iOS devices and enables a larger font to prevent zoom. [Original concept] http://stackoverflow.com/a/16255670/209005 http://stackoverflow.com/a/16255670/209005
- colinbartlett 11y agoThere are quite a few good code snippets and suggestions for improvements to the CSS here. I only wish there was some collaborative environment we could use to request changes to the code be pulled in and utilized.