Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 2 months ago

Responsive product preview card using Flexbox and CSS Grid

pure-css
Carlos Alberto da Silva•300
@slayer-br
A solution to the Product preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I’m proud of creating a clean and responsive product preview card using a mobile-first approach. I paid special attention to the semantic structure and accessibility. Next time, I would focus on implementing image optimization techniques like using the <picture> element for responsive images.

What challenges did you encounter, and how did you overcome them?

One challenge was centering and aligning the product prices properly while keeping the markup clean. I solved it by using Flexbox to control the spacing and alignment within the price container. Another challenge was adjusting the layout between mobile and desktop views, which I overcame by applying media queries effectively.

What specific areas of your project would you like help with?

I would like feedback on how to further optimize my CSS structure and better handle responsive images for different screen sizes using modern HTML techniques. Any suggestions on improving accessibility would also be appreciated.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Carlos Alberto da Silva's solution.

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
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License