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

Product-preview-card-Sass-cssgrid

sass/scss
Olanrewaju Akinola•30
@Olanrewaju-Ak
A solution to the Product preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hi guys, After my first challenge I decided to try another one , using some of the advise I got from you. This challenge was pretty interesting for me. I initially tried using flexbox to get the layout, it worked but it did not quite divide the card into equal halves, so I settled for CSS-Grid instead. I hope that is good practice? Also i had quite a challenge controlling the product image and making it fit the container well. If you see my solution I have a bit of container overflow at the bottom. I'll appreciate a critic of my codes and how I can do it better.

Thank you for your help.

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 Olanrewaju Akinola'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