Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Request path contains unescaped characters
Request path contains unescaped characters
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

CSS/HTML Solution, short

Tomaszβ€’ 240

@CurseTommy

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,420

@correlucas

Posted

πŸ‘ΎHello @CurseTommy, congratulations for your first solution! πŸ‘‹ Welcome to the Frontend Mentor Coding Community!

Great start and great first solution! You’ve done really good work here putting everything together, I’ve some suggestions you can consider applying to your code:

You've missed the alignment, first thing you've to do is to add min-height: 100vh to make sure your body will be displaying minimum 100% of the view-port height (this will help the card be ever aligned vertically centered) and then add display: flex; align-items: center; justify-content: center; to make the alignment:

body {
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

✌️ I hope this helps you and happy coding!

Marked as helpful

1

Tomaszβ€’ 240

@CurseTommy

Posted

@correlucas Hi :D πŸ‘‹

Thank you so much, appreciated your respond and help. I've already committed changes. And they seam well. πŸ˜„

Thanks ones again, wish us good luck in future! 😌

1
Lucas πŸ‘Ύβ€’ 104,420

@correlucas

Posted

@CurseTommy Happy to hear that Tomasz, keep it up!

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