How to create css image on button save?

Asked By 90 points N/A Posted on -
qa-featured

Hi to everyone,

How to create CSS image on button save?

I am not familiar with CSS codes but I have to start familiarizing CSS for it is very helpful and connected with html and PHP programming languages.

I need some video tutorial that you think can really help me along the process.

Thank you.

 

SHARE
Answered By 0 points N/A #164975

How to create css image on button save?

qa-featured

Hello Janet,

You can add an image to your save button using the following codes.

HTML code:

<input type="button" name="submit" value="Save" title="Save" class="saveButton" onclick="window.location='/save.php' " /> 

CSS code:

input.saveButton {

 background: url("Your image url") no-repeat 0 0;

 cursor: poiner;

 border: 0;

 text-align: center;

}

HTML code will add a button to your form. Buy setting a background using CSS will add an image to your save button. Hope this is clear to you.

This is a video which will help you to understand this: 

Related Questions