How to change an input button image using CSS

If you’re wanting to style the button using CSS, make it a type=”submit” button instead of type=”image”. type=”image” expects a SRC, which you can’t set in CSS.

Note that Safari won’t let you style any button in the manner you’re looking for. If you need Safari support, you’ll need to place an image and have an onclick function that submits the form.

Leave a Comment