QR code component using html and css

Solution retrospective
Sounds funny but i learnt how to center a div to the middle of the page after multiple attempts.
What challenges did you encounter, and how did you overcome them?My major challenge was centering the div i didn't know i had to specify a height for the body so the content inside could get centered. Initially i tried setting height and width of the body to 100% then i went on youtube and saw some solutions so i changed the height to 100vh and left the width. The QR-code image also gave me issues as i was trying to shrink it with percentages thinking it would shrink relative to the div it was inside but the image kept leaving its container so i manually corrected it.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Deji-Hb's solution.
Join 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