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

QR Code Component using HTML & CSS

Yanna 120

@yannancls

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

@Riktam-Santra

Posted

I see you have set height of the body to be 90vh which is the reason the box isn't centered exactly but moved a little towards the top.

You can fix this by setting padding and margin to be 0px globally and the box-sizing to border-box and then using 100vh instead of 90 as follows:

* {
      box-sizing: border-box;
      padding: 0px;
      margin: 0px;
      --slate-900: #1f314f;
      --slate-500: #68778d;
      --slate-300: #d5E1EF;
      --white: #fff;
      --card-container-gap: 24px;
      --card-container-padding: 16px;
      --card-container-padding-bottom: 40px;
    }

.container{
     height: 100vh
}

Marked as helpful

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