By Ryan Rajpoot
Pinch zoom is a key feature of mobile browsing, which allow you to to zoom in to read content and out to locate content within a page. I am trying to enable this feature on my website. I’ve tried to enable zooming by setting meta viewport like this.
<meta name=“viewport” content=“width=device-width,initial-scale=1”>
It’s working on my android smartphone(Sony) but it’s not zoomable on iPad and iPhone. My site www.pnrstatusbuzz.in is a php site, design in HTML5. Is this a designing issue or error in above mentioned code.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The viewport meta tag has some other parameters that when added may solve the issue with zooming on iOS. Here’s an example:
<meta name="viewport" content="width=device-width, initial-scale=.5, maximum-scale=12.0, minimum-scale=.25, user-scalable=yes"/>
user-scalable looks to be the main parameter you’re missing that should make the difference.
Thanks for the response, i will replace my code with yours and let you know the effect.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.