Skip to main content

size-units

reference) css units - w3cschools

Absolute sizes

px: pixel,

and others..

Relative sizes

UnitDescription
em2em means 2 times the size of the current font
remRelative to font-size of the root element
vw1% of the width of the viewport
vh1% of the height of the viewport
vmin1% of viewport's* smaller dimension
vmax1% of viewport's* larger dimension
%Relative to the parent element

and others...