Project / Support Center
Welcome, Guest. Please login or register. April 05, 2020, 02:12: AM
Home Help Search Login Register
D-Web Web Site Creator D - Web Web Site Creator On-line HTML Editor No Programming knowledge required. Web Global Net PayPal-Cart Shopping Cart System PayPal - Kart Shopping Cart System for E-Commerce over the internet, that's easy to use. Web Global Net Newsletter Manager Newsletter Manager On-line Newsletter Creator with Email Subscriber Management.
Ring Central Discount
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  CSS Related  |  Topic: Can't pinch and zoom on a mobile device webpage 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Send this topic Print
Author Topic: Can't pinch and zoom on a mobile device webpage  (Read 4411 times)
admin
Administrator
******
Offline Offline

Posts: 183


« on: June 17, 2016, 01:38: AM »

Zoom can be repressed by doing the following:

<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />

and

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

It’s the initial-scale=1.0 and maximum-scale=1.0 which effectively disables zoom in the first example and content=”user-scalable=no” in the second. On mobile devices you want to give the user as much control over screen size as you can.

So instead change the maximum-scale=2.0 or higher though 2.0 seems to be enough for most users :

<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=2.0" />

and

<meta name=”viewport” content=”user-scalable=YES” />
« Last Edit: June 17, 2016, 01:40: AM by admin » Report to moderator   Logged

The Unknown Webmaster
Pages: [1] Go Up Send this topic Print 
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  CSS Related  |  Topic: Can't pinch and zoom on a mobile device webpage « previous next »
Jump to:  


Login with username, password and session length
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!