Reputation: 809
I am testing a webpage on iPhone 5s (which has a resolution of 1136 x 640 pixels).
I have set meta as:
<meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width, shrink-to-fit=no">
and css:
body {
min-width: 600px;
}
The remaining classes on the page do not have pixel based width. They are all using % based width, none of which is more than 100%.
The page however, does not appear in full on phone's screen. I have to scroll horizontally to see complete view. Only when I set the body's min-width to 300px, the page appears full on phone's screen.
Now I am wondering why 600px cannot appear in full when phone support 640px horizontal resolution. I may be missing something very basic, please guide.
Upvotes: 1
Views: 48
Reputation: 22936
You're missing that you should count the point size of the iPhone screen, not the pixels.
This website which lists the viewport for most devices confirms that.
Upvotes: 1