Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to know the maximum width and height of the viewport in Mobile Safari, iPhone 4, without the height of the statusbar on top and the bar with the forward/back/bookmarks bar at the bottom.

share|improve this question
Do you mean the maximum values of the viewport meta property? If so, you probably should have posted this on Stack Overflow since it is development related. And the answer is 10000x10000 (see here). – ughoavgfhw Nov 14 '11 at 5:48
Check my answer to similar question on SO, might help a little -… – Dmitry Semenov Mar 30 '13 at 12:12

The iPhone 4 display is 320 by 480 points in size total. The status bar is 20 points high, and the tool bar at the bottom in 44 points high.

share|improve this answer
According to the official specs, the Iphone 4 has a resolution of 960x640. So that can't be it... – Diego Mar 1 '11 at 0:25
There are 2 hardware pixels per point on an iPhone 4 (scale = 2.0). 1 hardware pixel per point on a 3GS (scale = 1.0). But Javascript and css px maps to points, not hardware pixels. – hotpaw2 Mar 1 '11 at 1:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.