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

dharmen06 10

@dharmen06

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

@cesmsdev

Posted

Hello.

You have created a good design, but which can be improved considering the following.

Use Flex and remove the default html styles, to avoid the default white borders. Consider using the following CSS code, to better align your card.

html, body {
    height: 100vh;
    display: flex;
    justify-content: center; 
    align-items: center; 
    margin: 0; 
}

This CSS code does not use “position: absolute;” which prevents the content from being correctly centered and aligned, this is why I recommend using flexbox.

.main {
    display: flex;
    justify-content: center;
    align-items: center;
}
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