Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 3 years ago

Responsive product card using Flexbox

P
Matt Pahuta•810
@MattPahuta
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 was happy I was able to keep my styles to a minimum for this component project (less than 200 lines of CSS, including variables and reset styles).

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

When handling the image, I initially over-engineered my solution to keeping the proper size and aspect ratio. Eventually, I discovered it was best to get out of the way and allow the browser to handle most of the heavy lifting.

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

It's been some time since completing this project, but I still feel good about the flexbox styling I employed. If anything, I'd like to modernize some of the handling of fonts and further streamline the overall style code count.

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 Matt Pahuta'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

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

Frontend Mentor

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

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