Design comparison
Solution retrospective
I did it using custom properties, BEM methodology, relative REM measurements.
Did I do it right? Are there any errors? Where could I improve to make it better? I would like to read your opinion.
Community feedback
- @vanzasetiaPosted about 2 years ago
Hi, Riikis! 👋
Congratulations on completing your first Frontend Mentor challenge! 🎉
I recommend using the
body
element as the card container. Then, setmin-height: 100vh
to make sure thebody
element always fills the entire page. Doing that also still allows thebody
element to growing if ever needed.Then, make the
main
element as the card element. Also, there's no need forheader
anddiv
. This way, the HTML markup is more simple.Changing the
html
(or the:root
)font-size
can cause huge accessibility implications for those users with different font sizes or zoom requirements. I recommend taking a look at these resources to learn more about the issues.- A blog post by Josh Comeau where he writes about the problem of the 62.5% trick (and more!).
- A comment from an accessibility expert (Grace Snow) about it.
I hope this helps! Happy coding!
Marked as helpful0
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