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
pxunit
that specifies a size in pixels -
the
emunit
that specifies a size in em -
the
remunit
that specifies a size in rem -
the
%unit
that specifies a size in percentage -
the
vhunit
that specifies a size in vh -
the
vmaxunit
that specifies a size in vmax -
the
vminunit
that specifies a size in vmin -
the
frunit
that specifies a size in fr