QR code component challenge using CSS and HTML
Design comparison
Solution retrospective
What would be the best practice to include a top margin between the QR code image and and the top border of the div(white background).
Community feedback
- @HashimAlSadahPosted over 2 years ago
Hi @saksham747, congrats on completing this challenge, but I have few tips that will improve your solution.
First, to answer your question the best way to add the space between the container <div class="box"> and the image is to use padding for the box container, which will result in equal space in all directions.
I also noticed that you are using a lot of fixed heights and widths in you code, which makes you struggle with responsiveness and make you add unnecessary margins and padding.
I also recommend the free course about responsive layouts by (Kevin Powell).
You can also look at his channel on YouTube in following link.
Overall, great job and Keep Coding
Marked as helpful0@saksham747Posted over 2 years ago@HashimAlSadah Thanks a lot, will certainly improve on this.
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