
Design comparison
SolutionDesign
Solution retrospective
What challenges did you encounter, and how did you overcome them?
While solving the QR code challenge I had problems centering the qr code image. After a little online search, I learned that images act funny in a div because we're forcing an inline element (img) inside a block element (div). I learned two ways to tackle this problem but I used the one I preferred ššššš
š To see how you can add code snippets, see below š:
What specific areas of your project would you like help with?.qr-code { margin-top: 10px; width: 95%; height: 100%; } #qr-code { padding: 5px; display: block; margin: auto; box-sizing: border-box; width: 100%; border-radius: 15px; object-fit: contain; }
Responsive Layouts
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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