Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 2 years ago

Product preview card component challenge - Solution using CSS Grid

animation
Leo-Code-CA•60
@Leo-Code-CA
A solution to the Product preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hi there!

I had a lot of fun while building this project using CSS grid!

It was the first time I was using SVG and I've learned that there are several different ways to use that kind of image. I was wondering:

  • What's the best practice to use SVG?
  • Is it better to include SVG images in the CSS or HTML?
  • If the answer is HTML, what tag should I use (<svg></svg> or <object></object> or <iframe></iframe> or another one)?

Happy coding everyone :)

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 Leo-Code-CA'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

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