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

Product Preview Card

sass/scss
Saeed Bin Mizan•80
@BluffSet7340
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?

Proud of being able to match the solution as closely as possible. I also started using SCSS which was nice to use.

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

Challenges encountered was having to use media queries and and tags to switch between images for mobile and desktop. A YouTube tutorial by Kevin Powell helped me immensely.

Another issue was the fact that on desktop view, the content took more width than the image so I had to force both image and the content to take up a width of 300px. The image wasn't filling up the tag so I had to force the height to be 450px, which seemed to fix the issue.

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

I'm not too happy with the way I dealt with my second issue, especially in setting the height of the image. If time permits, please look through my code and suggest whatever fixes I can implement rather than just explicitly setting the height of the image.

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 Saeed Bin Mizan'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