Why you should never use px to set font-size in CSS

Many developers seem to believe there's no difference between px and other CSS units. Let's dispel that myth, for the sake of better accessibility.

Josh Collinsworth
@WebAxe I mean, this was a thing back in IE6. Has it appeared again?
@pnuk It's always been a best practice to use relative sizing. Here's an article from 2019: https://www.24a11y.com/2019/pixels-vs-relative-units-in-css-why-its-still-a-big-deal/ and user stats from 2018: https://medium.com/@vamptvo/pixels-vs-ems-users-do-change-font-size-5cfb20831773
Pixels vs. Relative Units in CSS: why it’s still a big deal - 24 Accessibility

Long live the modern browser! Browsers are getting better these days. We seem to be in a golden age where there’s a never-ending stream of new features added for the benefit of the users accessing the page, and really great tools for those creating the page. It hasn’t always been the case, though. Earlier versions …

24 Accessibility
@WebAxe thank you for posting this article. reading this lead to a change that we just put into production today!