Perfume card with some animation and css grid
Design comparison
Solution retrospective
This project looked deceptively easy but getting everything aligned and in place was a challenge.
Community feedback
- @sasanqcPosted over 1 year ago
Hi, Congrats for your submission. First of all , your solution should be similar to the challenge, as much as is possible. fonts and colors are different. next, the challenge wants us to set different images for different screen sizes. you cat do that with picture tag
<picture> <source srcset="images/image-product-mobile.jpg" media="(max-width: 375px)" /> <img class="image" src="images/image-product-desktop.jpg" alt="" /> </picture>
Marked as helpful1 - @frank-itachiPosted over 1 year ago
Hello there π. You did a good job!
I have some suggestions about your code that might interest you.
HTML π:
- Since the mobile design has a different image, you can use the
<picture>
tag that allows you to interchange the images depending of the viewport size. Red more about this awesome tag here
I hope you find it useful! ππ Above all, the solution you submitted is greatπ!
Happy
<coding />
π!Marked as helpful1@savvystriderPosted over 1 year ago@frank-itachi Thank you! Iβm glad thereβs a simpler way to do it
0 - Since the mobile design has a different image, you can use the
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