Viewport questions

I read that link, and Firefox’s “improvement” does not address the issue in the article in my OP.

As mentioned in that article…

The link you provided shows Firefox zooming in.

As mentioned in previous posts, adding the meta tag as shown:

<meta name="viewport" content="width=device-width, initial-scale=1">

deals with orientation. I have used it and seen it working with my own eyes on an actual phone. Just add the tags.

I don’t know were this comes from, maybe its out-dated info, something peculiar to the iPhone4 or just plain wrong, I don’t know, but disregard it and move on.

That was an old issue and is no longer a problem. You can ignore that as the bug was fixed a couple of years ago and my iphone4 does not render the page like that.

More serious problems will arise if you do not apply "width=device-width and initial-scale=1.0 just like this:

<meta name="viewport" content="width=device-width, initial-scale=1.0">

See my post here for extensive tests on this issue and further confirmation can be found in tests run on the quirksmode site shown in a subsequent post in that thread.

Suffice to say you can be happy that the correct tag to use is the one I have shown above and don’t be tempted to modify it (or to stop users ability to scale by using maximum-scale).

3 Likes

When Paul O’ speaks, I listen! :sunglasses:

Thanks Paul!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.