Viewport META directive |
Example Value |
Description |
width |
width=320
width=device-width |
Logical width of the viewport, in pixels. The special device-width
value indicates that the viewport height should be the screen width of
the device. |
height |
height=480
height=device-height |
Logical height of the viewport, in pixels. The special device-height
value indicates that the viewport height should be the screen height of
the device. |
user-scalable |
user-scalable=no |
Specifies whether the user can zoom in and out of the viewport,
scaling the view of a Web page. Possible values are yes or no . |
initial-scale |
initial-scale=2.0 |
Sets the initial scaling or zoom factor (or multiplier) used for
viewing a Web page. A value of 1.0
displays an unscaled Web document. |
maximum-scale |
maximum-scale=2.5 |
Sets the user’s maximum limit for scaling or zooming a Web page.
Values are numeric and can range from 0.25 to 10.0. The value of this
directives is a scaling factor or multiplier applied to the viewport
contents. |
minimum-scale |
minimum-scale=0.5 |
Sets the user’s minimum limit for scaling or zooming a Web page.
Values are numeric and can range from 0.25 to 10.0. The value of this
directives is a scaling factor or multiplier applied to the viewport
contents. |