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 using CSS flex.

@dreaquil

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'm unsure how best to get the sizing of the image and the component right.

I'm unsure how to deal with responsiveness at the lower end of mobile.

Community feedback

@SamuelWoniowei

Posted

You could use CSS flexbox. It works perfectly for positioning at the center both horizontally and vertically.

Marked as helpful

0

@brandonetter

Posted

Hey! Centering and sizing things can be hard. You can try using percentages and non-absolute values for sizing to help with responsiveness- and there's always @media queries in CSS!

https://codepen.io/brandonetter/pen/wvjZMeb

You can also add centering to your body to keep everything in the middle. Good work.

Marked as helpful

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