What's the size of the visible area in Mobile Safari on the iPhone 5 in default configuration, in landscape and in portrait orientation?
iOS6
According to Kyle Larson's article iPhone 5 Web Design, the resolutions are:
Portrait: 640 × 888 px (= 320 × 444 double px)
Landscape: 1136 × 392 px (= 568 × 196 double px)
That is with navigation bar, i.e in default configuration, like I wrote in my question.
iOS7
According to @astletron, the resolutions are:
Portrait: 640 × 920 px
Landscape: 1136 × 424 px
Portait:
- Height - 892 (716 + 176 (the difference between the new and old devices))
- Width - 640
Landscape:
- Height - 420
- Width - 1136
window.innerWidth
and window.innerHeight
? I will mark your question as answered, once I can be certain about the numbers. Without source, I am still hesitant. –
Breast Just keep in mind that screen resolution ≠ browser viewport due to pixel ratio being more than 1:1
For anyone who needs more recent info on visible view port (without scroll) for iPhones don't forget to substract:
- system status bar (top): 20
- URL bar (top or bottom): 44
- spacing (in between): 10
- Safari icons bar (bottom): 44
Of course in newer iOS the URL bar minimizes (only 20) when scrolling down and icons bar disappears completelly. But I recommend focusing on minimal fit, for example iPhone SE 2 it would be:
- screen Size: 750px × 1334px
- fullscreen viewport Size: 375px × 667px
- realistic minimum viewport: is only 375 x 549 px
Some designers make mistake of forgetting this and typically modals have [x] icon outside visible area :)
If you're after general viewport size, iPhone5 portrait width is 320 and landscape width is 568.
© 2022 - 2024 — McMap. All rights reserved.