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

Responsive solution to: Product preview card component challenge

bem
josip-h•90
@josip-h
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 most proud of making my solution responsive by using relative units, which allow the content to scale proportionally with changes in the root element's font size.

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

I encountered two problems while solving this challenge:

  1. Figuring out how to use em and rem units to ensure that the content scales with changes in the root element's font size. This problem was resolved by watching Kevin Powell's video on this topic, as well as through trial and error.

  2. Deciding on the best approach for using a media query to make the page responsive while keeping the code as concise as possible. While I am certain that there might be room for improvement, this represents the best solution I can achieve at the moment.

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

Any feedback on my approach to solving the two problems mentioned above would be greatly appreciated. Additionally, I welcome any other comments or critiques.

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 josip-h'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