iPhone site optimization: Custom viewport size

Posted by Brandon Durham on Pro Webmasters See other posts from Pro Webmasters or by Brandon Durham
Published on 2011-01-09T20:07:20Z Indexed on 2011/01/09 20:58 UTC
Read the original article Hit count: 383

Filed under:
|

I've got a site that should max out a 575px on the iphone and wanted to know what the best method is for defaulting the viewport to this size. Currently I am using this meta tag:

<meta name="viewport" content="width=575; user-scalable=no;">

This displays some odd behavior in that it loads fully zoomed out and then, once the page is loaded, zooms in to 575.

What are the best methods to ensure that my site will surely display at 575px wide in mobile browsers?

© Pro Webmasters or respective owner

Related posts about web-development

Related posts about iphone