<?xml version="1.0" encoding="utf-8"?>

CSS viewport height (vh)

Vh stands for viewport height — a percentage of the full viewport height, where 1vh is 1% of the current viewport height. This unit is useful when sizing boxes that adapt to different window sizes. For example, you can use vh to set a maximum height of an image so that it does not exceed the viewport dimensions. There are other use cases as well.[1]

Improve your UX & Product skills with interactive courses that actually work