What is vh, vw, vmin, and vmax in CSS?
25 February 2024 (Updated 18 May 2025)
vhstands 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).1vhis equal to 1% of the viewport heightvwstands for “viewport width” – the % of the viewport’s width.vmintakes the smaller fovworvh.vmaxtakes the larger fovworvh.
Tagged:
CSS