
Design comparison
Community feedback
- P@morauszkiaPosted about 1 month ago
Just a tip: instead of adding a margin to the element, you could use flex box for the overall centering of the component - you could stretch the body to cover the whole screen (you could check out units like vh, vw, dvh, etc. to do this), and then use flexbox, to center the element in the body - the body would be the flex container, and you would align-items and justify-content both to the center, and your QR code component will always be at the center of the screen.
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