Tuesday 9 August 2011

Developing Mobile only websites

While working on a mobile only website, I wanted to make the site just for mobile devices (a bit like m.youtube.com or m.facebook.com) and no matter what I did the page was always bigger than the screen of the target device. Anyway thanks to Google the answer was in their Android Developer help: http://developer.android.com/guide/webapps/targeting.html


<head>
    <title>Example</title>
    <meta name="viewport" content="width=device-width, user-scalable=no" />
</head>


Simple when you see it!

No comments: