DEV Community

Cover image for Why I Move from Pixels (px) to Relative Units (rem) in CSS
Seerat Awan
Seerat Awan

Posted on

Why I Move from Pixels (px) to Relative Units (rem) in CSS

Switching from pixels to relative CSS units like rems improves accessibility, responsiveness, and maintenance of sites over time.

Why You Should Move from Pixels (px) to Relative Units (rem) in CSS β€” Seerat Awan

An in-depth guide on why you should move from using pixels (px) to relative units like rems for sizing elements in CSS. Details the benefits of fluid relative units for responsiveness, accessibility, and maintaining sites over time.

favicon seeratawan.me

Top comments (0)