Menu Home

vw

osbo.com | CSS | Units | vw

The vw CSS unit specifies the length of the element relative to the viewport width. It is equal to 1% of the width of the initial containing block.

Syntax

<number>vw

Examples

CSS

JS

Internal

vh

vmax

vmin

External

World Wide Web Consortium (W3C)