
Design comparison
SolutionDesign
Community feedback
- @knznsmnPosted 4 months ago
Cool Solution
Cool! Code is simple and straight to the point. I think the QR code should be centered on Y-axis too, though I am not sure about that. I so thought because the design shows a centered QR code. Now I can't remember if I also centered it in my code...
If I want an element to be centeredc I usually use flexbox.
div { display: flex; justify-content: center; align-items: center; }
Assuming the width and height occupies the whole viewport.
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