Submitted almost 3 years agoA solution to the E-commerce product page challenge
Responsive e-commerce product page using HTML, CSS and JavaScript
@Silasico

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
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Yasmine10
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