Responsive detail card using Flexbox
Design comparison
Solution retrospective
My solution to the product preview card challenge.
Community feedback
- @denieldenPosted about 2 years ago
Hi Reckson, congratulations on completing the challenge, great job! ๐
Some little tips for optimizing your code:
- add
main
tag and wrap the card for improve the Accessibility - use
min-height: 100vh
to section instead ofheight
, otherwise the content is cut off when the browser height is less than the content - add
transition
on the element with hover effect
Hope this help! Happy coding ๐
Marked as helpful1 - add
- @correlucasPosted about 2 years ago
๐พHello Reckson, Congratulations on completing this challenge!
Great solution and great start! By what I saw youโre on the right track. Iโve few suggestions to you that you can consider to add to your code.You did a good work putting everything together in this challenge, something you can do to improve the image that needs to change between mobile and desktop is to use
<picture>
instead of<img>
wrapped in a div. You can manage both images inside the<picture>
tag and use the html to code to set when the images should change setting the devicemax-width
depending of the device (phone / computer) Hereโs a guide about how to usepicture
:https://www.w3schools.com/tags/tag_picture.asp
โ๏ธ I hope this helps you and happy coding!
Marked as helpful1@Saga-sangaPosted about 2 years ago@correlucas will do. Thanks for the feedback!
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