![](https://res.cloudinary.com/dz209s6jk/image/upload/f_auto,q_auto,w_900/Screenshots/t9ztzgbdigdve3hwmacn.jpg)
Responsive solution to: Product preview card component challenge
Design comparison
Solution retrospective
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:
-
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.
-
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.
Any feedback on my approach to solving the two problems mentioned above would be greatly appreciated. Additionally, I welcome any other comments or critiques.
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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