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

Product Preview Component Solution - Challenge #5

bem
P
Fraser Jubb•280
@fraserjubb
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 happy with the progress I am making. I now have a better understanding of the <picture> element, though I would like to try incorporating it earlier in projects. At the moment, I use the <img> element, and the last thing I do is replace it with the <picture> element to make it more responsive.

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

When adding the max-width attribute into the <source> element, I spent way too long trying to figure out why it wasn’t working, only to realize that I forgot to add px.

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

Is my HTML code semantic? How was my use of the <picture> element?

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 Fraser Jubb'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