Flex box using flex-grid

Solution retrospective
What is the best way to center the container containing the QR code the heading and paragraph
Please log in to post a comment
Log in with GitHubCommunity feedback
- @markskwid
Hello, @NelsonMungai2003
To center the element inside a flexbox you can use align-items and justify-content:
body{ display: flex; justify-content: center; align-items: center; }
Happy Coding!
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