Solved

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

Posted on 2011-03-23
2
422 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

809 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