REM vs. EM

  • em is relative to the font-size of its direct or nearest parent
  • rem is only relative to the html (root) font-size
Advertisements