When length is specified using vh
,
it is calculated based on the window height,
also known as viewport height.
Viewport is the visible part of a screen.
In the example given below, the viewport is
the rectangular window given below the
code editor and, the div
covers it completely
with a height of 100vh
.
1vh
is 1%
of the window height.
So, 100vh
is equivalent to the window height.