-
remandemunits are computed into pixel values by the browser, based on font sizes in your design. -
emunits are based on the font size of the element they’re used on. -
remunits are based on the font size of the html element. -
emunits can be influenced by font size inheritance from any parent element -
remunits can be influenced by font size inheritance from browser font settings. -
Use
emunits for sizing that should scale depending on the font size of an element other than the root. -
Use
remunits for sizing that doesn’t needemunits, and that should scale depending on browser font size settings. -
Use
remunits unless you’re sure you needemunits, including on font sizes. -
Use
remunits on media queries -
Don’t use
emorremin multi column layout widths - use % instead. -
Don’t use
emorremif scaling would unavoidably cause a layout element to break.