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 Card using HTML & CSS

Tylerdurden230β€’ 120

@TylerDurden230

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

Lucas πŸ‘Ύβ€’ 104,440

@correlucas

Posted

πŸ‘ΎCIAO! Tyler, congratulations for your first solution and 😎 welcome to the Frontend Mentor Coding Community!

Unfortunately I've to break the first rule of the Frontend Mentor Fight club and talk about it. To improve even more your solution you need to give it the properly vertical alignment, here's how you can do it:

My advice for your is to use flexbox to create this alignment. For example, first of all add to the body min-height: 100vh to make the body display 100% of the browser screen size and display: flex e flex-direction: column to align the child element (the container) vertically using the body as reference.

body {
    min-height: 100vh;
    background-color: hsl(212, 45%, 89%);
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

πŸ‘‹ I hope this helps you and happy coding!

Marked as helpful

1

Tylerdurden230β€’ 120

@TylerDurden230

Posted

@correlucas Thank You Lucas for the advice! I have submitted my solution just to see the differences. I'm going to improve it following your advice and send it again.

I've Really appreciated the quote.

1

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