Opeyemi olaniyan• 70
@frontenddeveloper9
Posted
The icon should be inside the button HTML tag. Something like this👇
<button class="btn"> <img src="link to the icon path">Add to cart</button>
Then try this CSS code
.btn{
- display:flex;
- align-items: center;
- justify-content: center;
- gap: .5em;
- width: 100%;
- height: 3.5em;
- background-color: As mentioned in the style.md file;
- outline: none;
- border: none;
- border-radius:0.8em;
- font-size: 0.90rem;
- font-weight: 700;
- color: As mentioned in the style.md file
}
I hope the above help.
1