Design comparison
SolutionDesign
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?
Community feedback
- @visualdennissPosted over 1 year ago
<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 helpful1
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