Sunday, June 28, 2009

Setting page width for iPhone

By default iPhone assumes that the page width is industry standard (ie. 980px), even if you display a tiny widget.

To make the page with widget iPhone friendly insert "viewport" meta tag.

The working area on iPhone is 320x360 as the user first see the page. Scrolling down on iPhone is very intuitive so the page can be very tall.