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

Product-Card-perfumes

pure-css
Piyush Rajput•270
@Piyush-Rajput7
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 finished this task in less time than other challenges.

I'm proud that I was able to recreate the layout closely by using Flexbox and customizing typography and spacing without external libraries. This project boosted my confidence with layout skills and pixel-perfect alignment.

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

One challenge I faced was matching the line breaks and font sizes in the product description section. My layout initially showed only three lines, while the original had four. I adjusted the width of the text container and fine-tuned font-size, line-height, and padding to match the design more closely.

I also had an issue with the layout gap, which I fixed using better spacing with Flexbox and alignment tweaks.

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

I'd appreciate feedback on:

How closely my typography and spacing match the original design

Whether there's a more efficient way to achieve the card's layout and responsiveness using CSS

Suggestions for improving mobile responsiveness and scaling

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 Piyush Rajput'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