meta name="viewport" Element

Setup the Viewport for Mobile Devices


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

width=device-width sets the width of the viewport to the devices actual width.

initial-scale=1.0, maximum-scale=1.0 sets the scale of pixels to 1px per actual pixel (1:1) .

user-scalable=0 disables the users ability to scale the pixels.

Also read...

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>