Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Product preview card with flexbox and grid

P
shruticodes01•290
@shruticodes01
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?
  • Using CSS Grid and Flexbox
  • Learning that button should can have a display of inline-flex instead of flex.
  • Using min-width to adjust image-size.
  • Using BEM naming method
  • Practicing to keep the code robust and readable.
What challenges did you encounter, and how did you overcome them?

Card image - width of 50% on card image and the class of card_details, ended up scaling the image down.

But applying min-width on the image adjusted the image to 50% of the card width and 100% of the height.

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

All kinds of feedback and different approaches to the solution would be helpful. Thank you.

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 shruticodes01'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