@Sivin-Wi
Posted
- Code Reformat :
<div class="btn"> <button><i class="fa fa-shopping-cart" aria-hidden="true"></i> Add to Cart</button> </div>
Important thing : "fa fa-shopping-cart" . take icon from " font awesome 4.7 🤔" icons.
- Hover Effect:
.btn> button { padding: 1em 4.4em; border-radius: 0.5em; background-color: hsl(158, 36%, 37%); border: none; color: hsl(0, 0%, 100%); } btn>button:hover { background-color: hsl(169, 38%, 25%); cursor: pointer; }
- Try to learn FlexBox
- Try It if it Work or not 🐱
@MatthewA77
Posted
@Sivin-Wi
Hi, thank you for the feedback. Can you explain the meaning of your solution :)
@Sivin-Wi
Posted
@MatthewA77
keep Learning & Try to catch me 👻
@Sivin-Wi
Posted
@MatthewA77 use flexbox to align items faster way & for using svg code first try to save svg code to the file and add extension to file while saving eg: " img.svg " and use <img> element to add img src to " src attribute " . don't add svg code directly on html code it couldn't work ✊
@Sivin-Wi
Posted
@MatthewA77
don't add space between "button:hover"
@MatthewA77
Posted
@Sivin-Wi
Okayyy thanks for the tips on the svg stuff. I will catch you hahahaha 😎😎