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 Flexbox and CSS variables

VTickner 70

@VTickner

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 am currently improving my HTML and CSS knowledge. I used Flexbox to lay out the QR code component. Feel free to review my code and provide suggestions to help me improve my coding.

Community feedback

@Kamlesh0007

Posted

Some recommendations regarding your code that could be of interest to you.

You can reset the code initially

  • { box-sizing: border-box; margin: 0; padding: 0; } If you want to make the card centered both horizontally and vertically, you'd better add justify-content: center and min-height: 100vh to the body body { /* font-weight: 400, 700; / justify-content: center; min-height: 100vh; } If you use flexbox in the body, you don't need to use margin in the .container to center the card If you use max-width, the card will be responsive and you can reduce the width a bit .container { / width: 350px; / max-width: 300px; / margin: 50px auto; */ text-align: center; }
0

VTickner 70

@VTickner

Posted

@Kamlesh0007 Thanks for your feedback.

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