When I set a maximum scale and when I rotates orientations back and forth, the web page isn't centered on the phone.
So using this code
<meta name="viewport" content="width=device-width; initial-scale=0; maximum-scale=2;">
How can I mimic the CSS effect of margin: 0 auto;.
For people arriving here from Google, you should also look at the following page on Apple[1].
The viewport tag is quite helpful.
[1]: http://developer.apple.com/library/IOS/#documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html Using the ViewPort
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With