What Is the Rem Unit in Css

Dan Gold

Written by Dan

rem (root em) is a relative unit of measurement in CSS that sets the font size relative to the root element, rather than to the parent element.

This makes it possible to define font sizes once on the root element and have them be inherited by all child elements, without having to worry about resetting them on every individual element.

Last updated

November 8th, 2022