Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
that i was able to center the div
What challenges did you encounter, and how did you overcome them?centering elments sizing everything
What specific areas of your project would you like help with?flex box sizing semantics
Community feedback
- @undrthegraveyardPosted 6 months ago
Hey,
A better way to declare your sizing might be to use relative units, instead of hard-coded units like px as much as possible.
Use 'rem' for declaring your font sizes, and 'em' to declare margin, padding, etc.
Check out this resource if you wanna learn more about ems and rems. Click Here
It makes your life easier in the future when it comes to scalability and maintenance of the code.
Cheers!
Marked as helpful1
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