Responsive product preview card using CSS flexbox
Design comparison
Solution retrospective
This design is responsive. Please do give feedback on how the code/markup can be improved. I will appreciate any kind of feedback.
Community feedback
- @shaswatsingh19Posted over 2 years ago
Nice work, just that you should reduce your whole container width so that it will be perfect as the design. You also did mobile first design which is mostly preferred and that's great. You can watch Kevin Powell's video on width and max-width it is really great resource. I saw your code and you used both images inside the img div and put one to none and other one to display block. I would suggest to use both images as background-image and get them as url() it reduces the code and you didn't have to display block or none the the csss
Marked as helpful0@mahadaamir35Posted over 2 years ago@shaswatsingh19 Thanks for the feedback bro. Kevin Powell's videos are truly resourceful and effective. I will surely try to use the background-image property in my future projects.
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