My website I’m working on is pixel art, and I’m afraid that could possibly be the problem. In my button I can see my image, but you can also see a huge regular button behind it. I try resizing the image and it just resizes the button behind it too.
HTML:
<button><img src="images/download.png" height="60px" width="60px"></img></button>
I expected it to just show the image as the only part of the button.
Stack Overflow is telling me that there was another forum about it already and this is closed, but that’s completely different than what I’m talking about! Email me @[email protected] to answer this please unless you can answer me here.
2
Answers
As Lawrence Cherone said, applying to the background gives the — I guess — desired result.
there is few way to fix it
first one : you can use absolute position and set width , height to 100% , but maybeee it’s will be a little bit weird , after that you can resize button to 60px*60px or whatever size you want and after that you make button color, background-color to transparent and set border none and booom, you did it
and in second way you can use background-image for you’r button :))