Product preview card component (HTML & CSS)

Solution retrospective
Responsive layouts.
What challenges did you encounter, and how did you overcome them?Creating different layouts for mobiles and desktop. At first I had problems with positionig different divs. But after learning responsive layouts: display: flex etc. I overcame this problem.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Leonardolvq
Hey,
Thanks for introducing me to the <picture> element! I didn’t know about it, and it’s a great way to handle responsive images.
The rest of the code looks solid! Just a heads up about the nested CSS—if it's not SCSS, it won’t work in regular CSS. You might want to either remove the nesting or set up Sass.
Everything else is great though, nice job! 👍
Join 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