HTML , CSS - Solution from MetalRick84

Solution retrospective
Button is a div
First I added the "Add to Cart"-Button as html-button-element but there was a box-shadow wich I could not remove via CSS. So I changed it to a div. Is there a way to remove the box-shadow from a button element?
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@visualdenniss
<button> does not have a default box-shadow set, so it is not a box-shadow but actually a border, you can reset it by border: none;
Also i'd suggest adding a button:hover and background-color change for better UX.
Hope this is helpful!
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