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

Product preview card

AmyH-goose•120
@AmyH-goose
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 glad that I was able to finish another challenge. I think next time, I'll try to plan out what I have to do first instead of jumping straight in (I was all over the place with this one, especially trying to add accessibility into it).

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

For desktop screen sizes, I tried to use flexbox to make the picture appear next to the product content (in the media query) but it made the entire thing way too short, so I tried grid instead which worked pretty well.

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

Any feedback is welcome! I would also like to know why flexbox made the entire product card short when I tried to make the picture and content appear next to each other on desktop sizes while grid didn't (I couldn't figure out why). Does it have something to do with how flexbox is responsive to the children elements' sizes while grid makes the children elements conform to its set size?

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 AmyH-goose'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