@sorin7345Submitted over 1 year ago
Lots of thanks to anyone who might be taking a bit amount of time to review or to leave any precious piece of advice for this enthusiastic beginner. :)
And as always, big thumbs up for the community! :D
Lots of thanks to anyone who might be taking a bit amount of time to review or to leave any precious piece of advice for this enthusiastic beginner. :)
And as always, big thumbs up for the community! :D
You can create a button in HTML
<button>Add To Cart</button>
Use that code to style that button in CSS
button {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
gap: 10px;
padding: 15px;
color: #fff;
font-weight: 700;
border: none;
background: hsl(158, 36%, 37%);
border-radius: 8px;
width: 100%;
}
button::before {
content: "";
width: 15px;
height: 16px;
background: url("./images/icon-cart.svg");
}
I hope you find this helpful
Happy coding!