offline version v3


179 of 298 menu

vw unit

The vw relative unit of measurement is equal to 1% of the width of the viewport, for example, the width of a browser tab.

Example

Let's give the rectangle a width of 20vw. To see the difference in rectangle widths, 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 vh unit
    that specifies a size in vh
  • 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