Photo by William Warby on Unsplash

CSS Units: Which Ones To Use And Avoid

An explanation on CSS units with examples to get you going

Daan
Published in
7 min readAug 12, 2019

--

Since there are so many different units in CSS, it can be quite overwhelming. Most developers know how to work with pixels and percentages, but there are many more CSS units that can be used. Some of the CSS units that we will handle in this article are em, rem, fr, ch, vw and vh. You will learn which…

--

--