HTML and CSS Reference
Viewport width unit
iewport width unit( vvw )
This unit is calculated with respect to the viewport's width, which is divided by 100. If
the viewport is 937 pixels wide, for example, 1vw is equal to 9.37px . If the viewport's
width changes, say by dragging the browser window wider or more narrow, the value of
vw changes along with it.
Viewport height unit
iewport height unit( vvh )
This unit is calculated with respect to the viewport's height, which is divided by 100. If
the viewport is 650 pixels tall, for example, 1vh is equal to 6.5px . If the viewport's height
changes, say by dragging the browser window taller or shorter, the value of vh changes
along with it.
Viewport minimum unit
iewport minimum unit( vvm )
This unit is 1/100 of the viewport's width or height, whichever is lesser. Thus, given a
viewport that is 937 pixels wide by 650 pixels tall, 1vm is equal to 6.5px .