I want to know how I can change a normal default grey HTML button into an image using CSS.
This is the image I want to change into:
button.star {
background-image: url(img/star.jpg);
}

This is the image I’m using. It’s for favoriting an item. Thanks π
Is this the way to do it?
That’s just some random image from imgur, but basic concept. If there’s no content in the button make sure you set the height/width otherwise it won’t stretch to fit the button.
As a background
http://jsfiddle.net/robert/Wzu2S/
In the button
HTML
CSS
http://jsfiddle.net/robert/DjYmR/