Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
when to use em and rem ? - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
2y ago
•
2 replies
WaelBenseghir
when to use em and rem ?
I watched Kevin
's video about this topic
, and concluded that
:
use em for padding and margin
use rem for font size and margin if we want consistent spacing
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
When to use rem and em
KP-C
Kevin Powell - Community / front-end
17mo ago
Px, em, or rem?
KP-C
Kevin Powell - Community / front-end
2y ago
EM and REM scaling in different resolutions
KP-C
Kevin Powell - Community / front-end
3y ago
em and rem units with media queries
KP-C
Kevin Powell - Community / front-end
3y ago