Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

productPreviewCard

Anjelica 110

@Anjie-MF

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

This project was the first time I learned the differences between srcset and src attributes. Along with being my first FEM project, I learned the importance of HTML structure.

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

Flexbox. I am six projects in and it still gets me but I learned the usage of containers when using Flexbox.

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

Performance: how to optimize my images to reduce load times, especially for users on slower connections

Community feedback

@vitviki

Posted

Hey,

  1. To add the cart icon inside the button use img tag inside button tag like so:

         <button class="cart_btn">
            <img src="./images/icon-cart.svg" alt="cart">
           Add to Cart
          </button>
    
  2. Instructions to add screenshot in README can be found in README-template.md. For some reason I'm unable to write the command here. It's not showing up in the preview.

Hope this helps.

0

Anjelica 110

@Anjie-MF

Posted

Thank you for the helpful response. I will update my code accordingly @vitviki

0

Please log in to post a comment

Log in with GitHub
Discord logo

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