I'm struggling with turning an image into a button and removing the border and background. Is there a way to use the image as a clickable button?
Here's the image I'm trying to use as a button
Below is the code I've been using:
<a title="Go to the card store?" href="https://site"><button type="button"><img src="cardspin.gif" width="200" height="200"></button></a>
I attempted creating a custom button class in my .css file, but it didn't work. Here's the code I used for the class:
.transparent_button {
background-color: transparent;
border: 0px;
}
It's a straightforward button that redirects to another page within my site when clicked... Maybe that's affecting it somehow?