kxnzx• 870
@kxnzx
Posted
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 helpful
1
Looking to hire developers?
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.
@kxnzx
Posted
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 helpful
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