QR code component solution, i used html5 and css.
Design comparison
Solution retrospective
Been able to use the media query for the responsiveness of the webpage
What challenges did you encounter, and how did you overcome them?it was not so much of a challenge but pushing my work to github and using github pages for my site to go live but thanks to the resources provided, it made the journey easy and i was able to accomplish the task.
What specific areas of your project would you like help with?I had a little challenge when trying to center the qr-code so that it will be in the middle but if you look carefully the bottom is a little longer than the top, I tried using the margin though I didn't get the exact result I wanted but it was close to something perfect.
Community feedback
- @ortalyartsPosted 7 months ago
Hallo @rough-diamond213!
Congratulations on completing the challenge!
To place the div.container perfectly in the middle (independent from the width/height of the device) I would use following:
- Set the body element to
min-height: 100vh; display: flex;
- Set the div.container to
margin:auto;
I would also recommend you to use padding for the .container instead of margins for the image.
I hope you find this helpful! Cheers :)
Marked as helpful0@rough-diamond213Posted 7 months agoHello @ortalyarts
Thank you for your insightful contribution. it was helpful
1 - Set the body element to
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