Skip to content

Glossary: CSS Layout and Responsive Design

Viewport units

Also written: vw, vh, dvh, svh, lvh, dvh / svh / lvh

Units that are percentages of the window size: `vw` is 1% of its width and `vh` 1% of its height. `dvh` is 1% of the currently visible height, which changes as a phone's address bar slides, with `svh` and `lvh` the smallest and largest.

Where the book teaches it

Related terms

clamp()Viewport