Is it possible to have an image inside a button element in HTML? I've already designed the image in Photoshop, but its size doesn't quite fit the button. I want the image to fill the button while still keeping its functionality as a button.
I've attempted adjusting the border width, padding, and overflow properties of the button element to 0px and hidden respectively. Additionally, I tried setting the max-width property of the image to 100%
<button class = "col-sm-5" style= "border-width: 0px; padding:
0px; overflow: hidden;">
<img src= "photos/myImg.png" style= "max-width:100%;">
</button>
My aim is to have no borders visible around the image within the button, but there seems to be a grey border showing up between them. See Button/Image behavior screenshot for reference