The vmax unit
The vmax
relative unit of measurement
is equal to the largest value of the height
and width of the viewing area - vh
and vw
, respectively.
Example
Let's give the rectangle a width of
40vmax
. 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
vw
unit
that specifies a size in vw -
the
vh
unit
that specifies a size in vh -
the
vmin
unit
that specifies a size in vmin -
the
fr
unit
that specifies a size in fr