Design9 min read
px vs em vs rem in CSS: Which Unit to Use and When
px is an absolute pixel, em is relative to the element's own font-size, rem is relative to the root. Default to rem for accessibility — here is why and when.
M H Tawfik
Toolk Blog
Practical, no-fluff posts from the team building Toolk — written for developers, designers, and creators who want to ship faster.