Design comparison
Solution retrospective
The part i found most difficult was working with media queries as this is not something that i am used to. What are some tips on working with media queries that you'd recommend?
Community feedback
- @danielmrz-devPosted 10 months ago
Hello @ZephaW!
Your project looks great!
I noticed that you used
padding
to place the card in the middle of the page. Here's a very efficient way to center the card:- Apply this to the body (in order to work properly, don't use position or margins):
body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
I hope it helps!
Other than that, great job!
Marked as helpful0 - @rayaattaPosted 10 months ago
Hello 👋zeph_w, Congratulations on completing this challenge 🎉.
I have some suggestions you might find useful.
1 In order to make your html more semantic replace
<div class="container">
With<main class="container">
. This changes nothing visually but Using it makes all the difference. Using semantic markup improvesSEO
And
accessibility
You can find out more about the main tag in this article 📰.
2 Since the qr code image is not decorative fill it's alt attribute with text describing where it leads to i.e ```alt="qr code leading to frontend mentor.io"
3 I noticed you used many media queries but this could have been much simpler if you used
.container { max-width: min(90%,21rem); }
This is a summary of all the media queries. I hope this helps
Your solution is nice
Happy coding ✌️
Marked as helpful0@ZephaWPosted 10 months agoreally appreciate the feedback. I have seen different developers using the "main class" but I didnt understand what it meant .Thank you! @rayaatta
1 - @RazaAbbas62Posted 10 months ago
Hi, When working with media queries, prioritize a mobile-first approach, test incrementally at key breakpoints, use relative units, optimize images, consider both orientations, and leverage Flexbox and Grid for responsive layouts. Consistency and testing on real devices are crucial for a seamless user experience.
Enjoy Coding Journey :)
1
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