Monday, January 10, 2011

iPhone default zoom

I just spent an hour of my life that I'll never get back trying to figure out why my website was displaying at minimum zoom on the iPhone. Here, let me save you some trouble:

<meta name="viewport" content="width = 320" />

The iPhone's default width is 960 pixels. The above meta tag tells it that that's dumb, and please display the page like a normal mobile device.

No comments:

Post a Comment