offline version v3


180 of 298 menu

vh unit

The vh relative unit of measurement is equal to 1% of the height of the viewport or, for example, the height of the browser window.

Example

Let's give the rectangle a height of 80vh. To see the difference in rectangle height values, change the size of your browser window:

See also

  • the px unit
    that specifies a size in pixels
  • the em unit
    that specifies a size in em
  • the rem unit
    that specifies a size in rem
  • the % unit
    that specifies a size in percentage
  • the vw unit
    that specifies a size in vw
  • the vmax unit
    that specifies a size in vmax
  • the vmin unit
    that specifies a size in vmin
  • the fr unit
    that specifies a size in fr
enru