I’ve been trying to make a button from an image, but I’m not sure how to remove the border and background from it. Is there any way I could have the image act as a button?
This is my current button
And this is my code:
<a title="Go to the card store?" href="https://site"><button type="button"><img src="cardspin.gif" width="200" height="200"></button></a>
I’ve tried making a custom button class in my .css file, but it didn’t do anything. This was the code I used, trying to make the class.
.transparent_button {
background-color: transparent;
border: 0px;
}
It’s a pretty simple kind that just leads to another page of my site when clicked, if that has anything to do with it…
Seelv is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.