QR-Code-Scanner-Using-HTML&CSS
Design comparison
Solution retrospective
Feedback welcome.
Community feedback
- @MelvinAguilarPosted almost 2 years ago
Hello there ๐. Good job on completing the challenge !
I have other suggestions about your code that might interest you.
HTML ๐:
- Since this component involves scanning the QR code, the image is not a decoration, so it must have an
alt
attribute. Thealt
attribute should explain its purpose. e.g.QR code to frontendmentor.io
CSS ๐จ:
- Setting the font-size to 62.5% can attract compatibility issues with third-party libraries or plugins. You can read more about this with this two lectures:
Credit to grace-snow and vanzasetia for pointing this out.
I hope you find it useful! ๐ Above all, the solution you submitted is great!
Happy coding!
Marked as helpful1@YagyeshMani1498Posted almost 2 years ago@MelvinAguilar Thanks for your suggestion. i will apply this and i hope to get advice in future also.
1 - Since this component involves scanning the QR code, the image is not a decoration, so it must have an
- @HassiaiPosted almost 2 years ago
to center .main-container on the page, add min-height:100vh; display: flex; align-items: center: justify-content: center; or min-height:100vh; display: grid place-items: center to the body.
To center .main-container on the page using flexbox: body{ min-height: 100vh; display: flex; align-items: center; justify-content: center; }
To center .main-container on the page using grid: body{ min-height: 100vh; display: grid; place-items: center; }
Give h1 the same font-size as p .
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful0@YagyeshMani1498Posted almost 2 years ago@Hassiai thanks for your suggestions โบโบ,acutally i didn't use Flex-Box or CSS-Grid Because i just want to use some basics styling, but i will definately use your suggestions in my next project.
0
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