Design comparison
SolutionDesign
Solution retrospective
When should you be using rem, em, vw, vh units? Should I only be using only ONE out of the four?
Can I interchange the units depending on certain style attributes being used? For example, when adding margins or padding I only use vw or vh depending if it's left/right or top/bottom; for every other case, I use rem. Is this bad practice?
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord