How to scale a website for mobile devices? How to scale a website for mobile devices? android android

How to scale a website for mobile devices?


Android automatically adjusts to the size of your site, try to use width:100% or smaller than around 310 pixels (scrollbar takes space) for normal viewmode.

For IPhone try using this code to force the correct size

<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"> 

Also to force font-size try to use this code in your css:

-webkit-text-size-adjust: none;


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

The list should be comma-separated.