Why you should never use px to set font-size in CSS
Let’s be very clear: it absolutely does matter what unit you use in your CSS. And you should avoid px when setting font-size wherever possible.
There are 4 contents with this tag:
Why you should never use px to set font-size in CSS
Let’s be very clear: it absolutely does matter what unit you use in your CSS. And you should avoid px when setting font-size wherever possible.
The Surprising Truth About Pixels and Accessibility: should I use pixels or rems?
Josh's attention to details in all his articles is awesome. Here, he's presenting evidences that the rem unit should be used for font sizes, media queries and sometimes other dimensions, step by step, with interactive playgrounds.
Why designers should move from px to rem - and how to do that in Figma
If you're a Web developer (as most of my readers), you already know that users DO change font size (in their browser preferences), so you make sure to use proportional dimension units (em, rem, %, etc.) instead of px everywhere you can.
Font sizing with rem could be avoided
I don't really agree with the simple statement made in the title of this article, as sizing fonts with rem is sometimes useful to escape the default cascading sizing, but the most important part here IMHO is the following:
See all tags.