Design comparison
Community feedback
- @MelvinAguilarPosted almost 2 years ago
Hello there π. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
HTML π:
- Wrap the page's whole main content in the
<main>
tag.
Alt text π·:
-
The
alt
attribute should explain the purpose of the image. Uppon scanning the QR code, the user will be redirected to the frontendmentor.io website, so a betteralt
attribute would beQR code to frontendmentor.io
If you want to learn more about the
alt
attribute, you can read this article. π.
CSS π¨:
-
If you want to have a responsive component that resizes, you should use
max-width: 320px
on the component instead of fit-content, then use max-width: 100% on the image so that the edges don't get cut off on mobile devices. -
Use
min-height: 100vh
instead ofheight: 100vh
. Theheight
property can cause your component to be cut off on small screens, such as a mobile phone in landscape mode.
I hope you find it useful! π Above all, the solution you submitted is great!
Happy coding!
Marked as helpful1@ElhabibTOUAOUAPosted almost 2 years agoHello @MelvinAguilar, I hope you are doing well. Thank you so much for your suggestions, they were very helpful specially the max-width property that I wasn't aware of the true potentials of it.
Thanks again, and I hope to see your feedback more often.
best regards.
1 - Wrap the page's whole main content in the
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