DEV Community

Discussion on: Which units of measure do you use and why in CSS?

Collapse
 
notriddle profile image
Michael "notriddle" Howell

px

It's already scaled by browsers when you zoom anyway, and it works in all the old MSIE versions, so why not?

Collapse
 
ryan profile image
Ryan • Edited

px is not affected by a user's default zoom setting. em/rem with a root percentage value is.

Users can always zoom per site, but that's annoying for a user who has a preference, or has a disability and requires a larger font, to have to change it on every site individually.