DEV Community

Cover image for Demo: px Vs em Vs rem
Dr SU
Dr SU

Posted on

Demo: px Vs em Vs rem

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)

If you've got any questions, hit me up in the comments ✌️.

Like it? Please share it!

Top comments (1)

Collapse
 
zothsu profile image
Zoe T

This is great! As a visual learner these kind of examples are invaluable!!