The conversion from rem
(root em) to pixels depends on the current font size of the root element (html
or body
) in your CSS. The rem
unit is relative to the font-size of the root element, while px
(pixels) are an absolute unit of measurement.
To convert 18 rem to pixels use this formula: 18 rem × font size in pixels = Pixels
base value:
Value(rem):
Value(Pixels):