The Battle of the Units: PX vs REM vs EM in this article. I'm going to go through a few CSS units for customizing the font-size of text when building webpages. There are a lot of other units such as pt, pc, ex, etc. I will be focusing on the 3 most popular units; px class="one-em">1 em based on 10px.

7m read timeFrom dev.to
Post cover image
Table of contents
PX (pixel)EM (M)REM (Root EM)The Verdict:
3 Comments

Sort: