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

responsive QR code web design

perryfung10β€’ 10

@perryfung10

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 not sure should I set height or min-height or max-height to the QR code container for responsive design.

Community feedback

Christianβ€’ 970

@FLCHRIS

Posted

Hi there!! ✌️

Congrats on completing this challenge!! πŸŽ‰πŸŽ‰πŸ₯³

Solving your question... You can the following πŸ™ƒ

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

.qrcode-container {
    background-color: hsl(0, 0%, 100%);
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 20px;
    max-width: 300px; // And add this
}

I don't recommend that you use the height property, but rather the min height property. The height property can cause you problems. πŸ˜₯

Your solution is very good! πŸŽ‰

Happy coding!! πŸŽ‰πŸ™ƒ

0

perryfung10β€’ 10

@perryfung10

Posted

@FLCHRIS thanks for your help !πŸ‘πŸ»

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