Do you still wonder when to use px, em, or rem?
You need to understand how they differ by responsiveness and not simplicity.
For that, I made a tool to show you how px, em, and rem relates to its component, document, and the user's preference in the browser settings.
Here's the tool
The tweet below has a video of me using it. (+ why I made it)
toheeb@toheebdotcomShould 3rd party stylesheets use #CSS em or rem?
rem offers one source of truth which is great for simplicity in calculating values
BUT, clients can't scope rem values to a page component as em does
Which is the greater good? em's flexibility or rem's simplicity?
#cssday17:36 PM - 09 Jun 2022
If you've got any questions, hit me up in the comments ✌️.
Like it? Please share it!