The Pros and Cons of Different Font Units in CSS

Nicky Christensen
Geek Culture
Published in
5 min readFeb 7, 2023

--

As frontend developers, choosing the right font size for our designs is essential. CSS provides several units for measuring font sizes, each with its own pros and cons. In this article, we’ll take a closer look at the different font units available in CSS, their advantages and disadvantages, and the recommended unit to use.

Font Unit: Pixel (px)

--

--

Nicky Christensen
Geek Culture

FE Lead at Rig.dev - A danish guy who speaks about frontend, tech & leadership - Follow & connect @ https://www.linkedin.com/in/dknickychristensen/