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

@jmiguelqv

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

Alberto Ledesmaโ€ข 370

@ledesmx

Posted

Hi Miguel ๐Ÿ‘‹

Great job on your solution!

Here are some recommendations for you:

I suggest to align the content in the center

  1. First of all, I would add display: flex; and flex-direction: column; inside the body tag. Flexbox provide us a better method for align items.
  2. Then, add justify-content: center; aligning the items in the y-axis.
  3. Lastly, add min-height: 100vh; setting the height to 100vh or more.

Code to add:

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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