What is vh, vw, vmin, and vmax in CSS?
25 February 2024 (Updated 25 February 2024)
vh
stands for “viewport height”. It’s a unit of measurement in CSS that’s used to specify sizes in terms of the height of the viewport (the visible area of a webpage in a browser window).1vh
is equal to 1% of the viewport heightvw
stands for “viewport width” – the % of the viewport’s width.vmin
takes the smaller fovw
orvh
.vmax
takes the larger fovw
orvh
.
Tagged:
CSS
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment