Design comparison
SolutionDesign
Community feedback
- @correlucasPosted over 2 years ago
πΎHello Suraj Mourya, congratulations for your new solution!
Here's my tips for your solution:
Add
display: block
andmax-width: 100%
to make the qrcode image responsive and scale with the card:.container img { max-width: 100%; display: block; /* width: 280px; */ border-radius: 15px; }
Remove the
background-color
from the container and add to the body and then useflexbox
for the alignment:body { display: flex; background-color: hsl(212, 45%, 89%); align-items: center; justify-content: center; }
π I hope this helps you and happy coding!
0
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