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 the "viewport" meta tag.

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

<html><head><meta name="viewport" content="width=320">




As an Amazon Associate I earn from qualifying purchases.

No comments:

Post a Comment

Post Scriptum

The views in this article are mine and do not reflect those of my employer.
I am preparing to cancel the subscription to the e-mail newsletter that sends my articles.
Follow me on:
X.com (Twitter)
LinkedIn
Google Scholar

Popular Recent Posts

Most Popular Articles

apt quotation..