I am working on a HTML page and I would like to use an image as a button. My problem is that it shows the button in gray colour and the image I want to use as the background of it is smaller and the whole button is in another position. I link two images, the first one shows how it should look like and the second one is what I managed to do.
Could you please help me what's wrong (I am a beginner, sorry if it is a very simple issue and the solution is easy...)?
The code in HTML is:
<button type="image" name="in_cart">
<img src="pic/in_cart.png">
</button>
With this the image - without making it act like a button - is in the right position, but as a button it shows the state in the second image
CSS:
#in_cart {
position:absolute;
top:165px;
left:600px;
width: 300px;
height: 35px;
}