Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 3 years ago

Responsive e-commerce product page using HTML, CSS and JavaScript

Silasico•40
@Silasico
A solution to the E-commerce product page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I would like to get your review and also corrections so I can become a better frontend developer and also to be able to master HTML, CSS and JavaScript and your review will really be of great help. Thanks in anticipation.

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Yasmine•710
    @Yasmine10
    Posted almost 3 years ago

    Hi Silasico 👋

    Your solution looks great! I did see some small things you could improve.

    • On the mobile version the image stretches when you size up the screen. To fix this you could add the following:
    .product-img img {
      object-fit: cover;
      object-position: center;
    }
    
    • I saw the "add to cart" button keeps stretching when you go to bigger screen sizes, might be best to add a max-width to the button
    • There are also some HTML and accessibility issues in the report that need fixing

    Hope this helps!

    Marked as helpful

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
Frontend Mentor logo

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

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub