Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 4 days ago

Product Preview Card Solution using HTML and CSS

Patrick Cheruiyot Kirui•70
@Pc-Kirui
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 proud to have completed the card component with an outcome that closely aligns with design specifications. The component is fully responsive across a wide range of screen sizes, achieved through the use of media queries and relative units for various HTML elements. Additionally I implemented hover and focus states to enhance interactivity and accessibility.

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

One of the challenges I encountered was serving the appropriate image for both desktop and mobile view-ports. I resolved this by using the HTML <picture> element in combination with media queries, which allowed me to specify and deliver the correct image based on the user's screen size.

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

This project was not that complex, but would like some help that can guide me on improving on the use of media queries.

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 Patrick Cheruiyot Kirui'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