The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Design › Hover on Button not Working
I have a button with a span which displays an icon.
I can change the icon color, but not on hover.
<button class="button" type="submit" value="Add To Cart"> <span class="ico ti-shopping-cart"></span></button>
transition: all 0.3s ease 0s;
margin: 50% 20px 0 0;
What am I doing wrong ?
Do you mean that you want to change the icon colour when you hover over the button? Try
button:hover > .ico
Thank you very much, this worked like a charm.