HTML, CSS & Sass

Solution retrospective
How do I center the container more efficiently? Thanks in advance
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Amanpatil-Dev
Maybe give your container height of 100vh and apply display:flex ,justify-content : center, align-items : center on parent element of your cards
- @pedrotpo
Use margin to center the container. You should set a value for top-bottom and then set "auto" for left-right, like: "margin: 20px auto"
If you don't need top-bottom margin, you can just set the first value to 0
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