How to disable zooming capabilities in responsive design?

Mo. picture Mo. · Nov 4, 2012 · Viewed 34.6k times · Source

How can I disable zoom-in and zoom-out capability in responsive design pages while using iPad, iPhone and/or some other smartphone.

Is there any way to control it?

Answer

Adam Stanley picture Adam Stanley · Nov 5, 2012

Create a META viewport tag, and set the user-scalable property to 'no', like this:

<meta name="viewport" content="user-scalable=no" />

Updated answer:-

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