søndag den 15. marts 2015

Scale HTML page to fill screen on mobile device

When you watch a HTML page on a mobile device you might want the size til scale to the screensize.
This can be done by placing meta information viewport in html head and set the scale to 1.
For half size set scale to 0.5

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

Ingen kommentarer:

Send en kommentar