Stop Using the Pixel Unit in CSS
3 reasons to avoid using the px unit
Published in
7 min readMay 11, 2021
Why do web developers use the px
unit so blindly? It is just a bad habit? Is it because of a lack of knowledge of other units? Maybe because the design teams rely on px
and pt
for their mocks? It is unclear why the pixel is the current go-to unit for most teams.