CSS Length Units

Relative to viewport

The vh and vw units are used when we want to set a length of an element using the viewport's width and height as a basis. 100vh translates to 100% of the current devices height. 100vw translates to 100% of the current devices width.

We generally rarely use these units, but they are useful to know about, and might be useful in some situations.