Design comparison
SolutionDesign
Solution retrospective
I used a CSS grid to center the element. Is there another way to center the element? and I can use flexbox to center the element.
Community feedback
- @kxnzxPosted over 2 years ago
Hello @MabIggo,
Remove display: grid; place-items: center; on your <div class="container></div> and try this instead:
display: flex; justify-content: center; align-items: center; height: 100vh;
Marked as helpful1
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