Solved

How to fix the width/height of page to avoid zooming on iPhone?

Posted on 2011-03-23
2
424 Views
Last Modified: 2012-05-11
Hi,
I notice that my webpage is able to be zoomed on iPhone (using 2 fingers and swipe open) and there are some website out there that can't be zoomed. Is there any settings that i need to set on my page ?

Please advise
0
Comment
Question by:tangteng78
2 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 250 total points
ID: 35200287
add this
<meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0" />


0
 
LVL 11

Assisted Solution

by:SAMIR BHOGAYTA
SAMIR BHOGAYTA earned 250 total points
ID: 35200306
Hi,

<meta name="viewport" content="width=320" />
<meta name="viewport" content="width=device-width,height=device-height,user-scalable=no" />
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question