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

Used flexbox for center and align the main container

Hariom 30

@DevHarry066

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


Found difficulty in centering the container. I am unsure of margin padding spaces.

Community feedback

@elemenceOR

Posted

try min-height: 100vh; in the flex container. So it will look something like this.

body {
    background-color: rgb(223, 231, 238);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

Marked as helpful

0

Hariom 30

@DevHarry066

Posted

@elemenceOR Thank you for the suggestion, I will try it

0

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