Design comparison
SolutionDesign
Solution retrospective
When placing the QR code in the center of the page I was wondering if there was a better way to do it, because I used margin-top, but I'm not sure if there's a better way.
Community feedback
- @j3rgusPosted about 1 year ago
Hello Mirta. To center the component you can use a wrapping container set up with flex:
.container { display: flex; justify-content: center; align-items: center; width: 100vw; min-height: 100vh; }
Marked as helpful0
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