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

Responsive QR Code Page

rkendall300โ€ข 240

@rkendall300

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@MelvinAguilar

Posted

Hello there ๐Ÿ‘‹. Good job on completing the challenge !

I have only one suggestion about your code that might interest you.

  • You can use the following styles to center the element effectively using either of these two methods and remove the overflow: hidden in the element: For Grid:

    #backdrop {
        background-color: #d6e2f0;
        /* height: 100vh; */
        /* margin: 0 auto; */
        /* overflow: hidden; */
        /* width: 100%; */
        display: grid;
        place-content: center;
        min-height: 100vh;
    }
    

    For Flexbox:

    #backdrop {
        background-color: #d6e2f0;
        /* height: 100vh; */
        /* margin: 0 auto; */
        /* overflow: hidden; */
        /* width: 100%; */
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }
    

    Later, you can remove this margin:

    #card{
      /*     /* margin: 175px auto; */
    }
    

I hope you find it useful! ๐Ÿ˜„

Happy coding

Marked as helpful

2

rkendall300โ€ข 240

@rkendall300

Posted

@MelvinAguilar Thank you for the suggestion! This looks way cleaner, so I will definitely swap over to using this kind of method for backdrops in future projects.

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