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 - Flexbox

Elouka972 80

@Elouka972

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


  • Can you give me a feedback on my challenge in order to improve myself?
  • Do you have any advice to give me?

Community feedback

@0xabdulkhaliq

Posted

Hello there 👋. Congratulations on successfully completing the challenge! 🎉

  • I have other recommendations regarding your code that I believe will be of great interest to you.

COMPONENT MEASUREMENTS 📐:

  • Use min-height: 100vh for .container instead of height: 900px. Setting the height: 900px may result in the component being cut off on smaller screens.
  • For example; if we set height: 900px then the .container will have 900px height no matter what. Even if the content spans more than 900px of viewport.
  • But if we set min-height: 100vh then the .container will start at 100vh, if the content pushes the .container beyond 100vh it will continue growing. However if you have content that takes less than 100vh it will still take 100vh in space.

.

I hope you find this helpful 😄 Above all, the solution you submitted is great !

Happy coding!

Marked as helpful

1

Elouka972 80

@Elouka972

Posted

@0xAbdulKhalid Thank you so much for your help !

0
Josh 1,070

@josh76543210

Posted

Hello @Elouka972,

Great job on your solution. Looks good!

One thing that I think would make your page even better is to remove height: 900px; on the container and replace it with min-height: 100vh;. The min-height will help center the card and the removal of the fixed height will make the page more responsive and prevent large empty spaces from appearing above and below the card on smaller screens.

Keep up the good work and happy coding!

Marked as helpful

0

Elouka972 80

@Elouka972

Posted

@josh76543210 Thank you :)

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