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 | Box Model with Flexbox

@MitchellQuevedo

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


What are you most proud of, and what would you do differently next time?

This second time enhanced responsivity and accesibility!

What challenges did you encounter, and how did you overcome them?

It was difficult to think out of the box with the use of "width" and "height" (I used max width instead).

What specific areas of your project would you like help with?

Responsive design.

Community feedback

MikDra1 6,070

@MikDra1

Posted

To make your card truly responsive I advice you to use this technique:

.card {
width: min(600px, 90%)
}

This ensures that the card won’t get bigger then 600px but on smaller screens it will be 90% of the viewport . The min() functions takes the smaller number.

It is the same as:

.card {
width: 90%;
max-width: 600px;
}

Hope you found this comment helpful ❤️

Good job and keep going 😁😃😉

Marked as helpful

1

@MitchellQuevedo

Posted

Thank you so much! @MikDra1

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