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

Responsive Product Cards using HTML5 & CSS3

Cole Y.•60
@Koruxx
A solution to the Product preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I had a tough time building the desktop version because my container which contained all of the text refused to align in the center of the free space to the right of the image. Eventually I think I figured out that it was because I used transform-scale() on the image which seems to keep the original div size even though the image size increases.

Edit: Looking at the solutions of others, I'd like to say mine is pretty accurate and its a plus that I included the mobile version too. But... IT'S TOO BIG! LOL. Seriously... I thought that because the design file specified 1440px of width that it meant my preview page was meant to be that 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 Cole Y.'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

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