Design comparison
SolutionDesign
Solution retrospective
Couple of places I'm unsure of
- I used height: 100vh in my body to get a page that wouldn't scroll and allow me to put my footer at the bottom. Is that right?
- In :root I set my default font size so that I could us rem units. It's still unclear to me if I should use rem or pixel or when.
Community feedback
- @MelvinAguilarPosted 11 months ago
Hello there ๐. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
- Instead of using pixels in font-size, use relative units like
em
orrem
. The font-size in absolute units like pixels does not scale with the user's browser settings. Resource ๐.
- Use
min-height: 100vh
instead ofheight
. Setting the height to 100vh may result in the component being cut off on smaller screens, such as a mobile phone in landscape orientation.
- Maintain a clear heading hierarchy, starting with <h1> and progressing through heading levels. Source ๐
- Add an
alt
attribute to the QR code image, explaining its purpose, e.g.,QR code to frontendmentor.io
.
I hope you find it useful! ๐ Above all, the solution you submitted is great!
Happy coding!
Marked as helpful1 - Instead of using pixels in font-size, use relative units like
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