Design comparison
SolutionDesign
Community feedback
- @clarencejuluPosted over 2 years ago
Hello islombek, You did a good job getting the project to look really close to the design. However, I noticed that when I added products to the cart, it doesn't show the number of items I have in the cart.
You can fix this problem by adding a span element into your 'cart' element. Position this span element absolute using (negative) top and right. To change the number within the span element, just store the number of items the user selected and add it to the span element using 'innerHTML or innerText'
Goodluck!
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin 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