How can I "disable" zoom on a mobile web page?

Martín Fixman picture Martín Fixman · Dec 17, 2010 · Viewed 399.4k times · Source

I am creating a mobile web page that is basically a big form with several text inputs.

However (at least on my Android cellphone), every time I click on some input the whole page zooms there, obscuring the rest of the page. Is there some HTML or CSS command to disable this kind of zoom on moble web pages?

Answer

kgutteridge picture kgutteridge · Dec 17, 2010

This should be everything you need :

<meta name='viewport' 
     content='width=device-width, initial-scale=1.0, maximum-scale=1.0, 
     user-scalable=0' >