Code

Disable zoom on mobile devices

  • Category: Code
  • Last edited: September 28, 2012

Getting snazzy with some resizable-layout websites? The last thing you want is for mobile devices to assume a zoom to show the full page, so drop in this meta tag into your header and zoom will be disabled! Tested on iPhone 4 and Samsung Galaxy SII.

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scaleable=no">