What do other measurment units in css mean?

im talking ones like “vw” and i think also “vh”? the new html-css course never explained them not even slightly.

vw stands for viewport-width, and vh stands for viewport-height.

10vh means 10 percentage of the viewports height.
23vw means 23 percentage of the viewports width.

I looked up a documentation for you, this has an explanation of different units:


Im not sure whether the new course has explained them, but the old course had taught about vw, vh, vmax, vmin.
The explanation of these is there in the relative length units section.

1 Like

vh is viewport height
vw is viewport width

See this:

1 Like