Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

FlexBox and Grid

#accessibility
MabIggo 50

@MabIggo

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

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

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

Please log in to post a comment

Log in with GitHub
Discord logo

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