Responsive product preview component using CSS Flexbox
Design comparison
Solution retrospective
This was a fun challenge.
- Looking for feedback on my use of media queries and how I can improve
- Any feedback on accessibility and mobile responsive design in also welcome
Community feedback
- @romila2003Posted over 2 years ago
Hi Mohammed,
Congratulations πon your completing your second challenge. It was a great attempt and it's good you are becoming familiar with media queries, especially at an early stage.
Regarding your media queries, it looks great however it is great practice to take a mobile approach first since it will be easier to adjust the elements as the screen size change in comparison to desktop approach first. There are many resources explaining the benefits of mobile first and how to implement this strategy into your project. When the screen reaches 765px, the card becomes too big for the screen therefore it would not look appealing for users using this screen size. It is good that you used the
main
tag for your card however another suggestion is to give the element a class of container or something similar e.g.<main class="container></main
Overall, it was a great attempt and wish you success for your future projects π.
Hope you found this helpful and if so, mark it as helpful.
Marked as helpful1
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