Mobile-enabling a Web page

android, mobile, programming

Stop that condensation

By default, my mobile Web browser attempts to make everything smaller so that a “normal” web page will fit in the phone’s screen, even when the page has a few items that would fit in the mobile browser’s native resolution.

One way I found (that this WordPress page is doing) to prevent that over-eager condensation of the page is adding a meta tag:

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />

See the viewport page from Apple.

Leave a Reply