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

Product Preview Card using CSS

pure-css
emmant-web•20
@emmant-web
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 am mostly proud of using display: flex for it helped a lot with positioning divs. What I would do differently next time is to have the cheat sheet of flex and grid to have the reference in front of me.

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

The challenges I encountered involved positioning which is placing the attribution div to the bottom of the page. But if I move it to the bottom of the page it pushes the main container upwards. I solved it by adding more height to the body of the page.

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

I would like help with the efficiency of my code. I feel like I could have done it faster and better if I knew CSS tricks.

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 emmant-web'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