CSS units of measurement are divided into absolute (px) and relative: em (parent's font size), rem (root font size), % (relative to the parent), vw and vh (window size). Relative units, notably rem, respect the user's preferences.
Example
font-size: 1.125rem;
width: 50%;
height: 100vh;