Home » Javascript » IOS prevent zoom on text input

IOS prevent zoom on text input

Posted by: admin November 1, 2017 Leave a comment


How do you prevent zoom on a text input in IOS? I know this has been asked before, and the conventional wisdom has been to have at least 16px font on the input.

However, this does not seem to be working with modern ios devices (recent iphones), though it does seem to work on an older ipad.

Any current solutions? I am preferably looking for a css, or pure javascript solution.

I am aware that we could disable zoom altogether for the page, but that is not a desirable solution.