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

Responsive Product Preview Card

bem
Daniel Zeljko•50
@danielzeljko
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?

There's nothing I'm particularly proud of as it's such a simple component.

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

I ran into issues where setting a fixed height on project-card would cause the checkout button to overlap with the bottom margin. So, instead of having 32px (desktop padding) all around the project-card__body the actual bottom padding would be something like 15pxs.

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

How do we get the project card to have a fixed height without breaking the padding around the project card?

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 Daniel Zeljko'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