This HTML and CSS code shows how to customise buttons in a restful way. Source: http://particletree.com/features/rediscovering-the-button-element/
<div class="buttons">
<button type="submit" class="positive">
<img src="/images/icons/tick.png" alt=""/>
Save
</button>
<a href="/password/reset/">
<img src="/images/icons/textfield_key.png" alt=""/>
Change Password
</a>
<a href="
<img src="/images/icons/cross.png" alt=""/>
Cancel
</a>
</div>
/* BUTTONS */
.buttons a, .buttons button{
display:block;
float:left;
margin:0 7px 0 0;
background-color:
border:1px solid
border-top:1px solid
border-left:1px solid
font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
font-size:100%;
line-height:130%;
text-decoration:none;
font-weight:bold;
color:
cursor:pointer;
padding:5px 10px 6px 7px; /* Links */
}
.buttons button{
width:auto;
overflow:visible;
padding:4px 10px 3px 7px; /* IE6 */
}
.buttons button[type]{
padding:5px 10px 5px 7px; /* Firefox */
line-height:17px; /* Safari */
}
*:first-child+html button[type]{
padding:4px 10px 3px 7px; /* IE7 */
}
.buttons button img, .buttons a img{
margin:0 3px -3px 0 !important;
padding:0;
border:none;
width:16px;
height:16px;
}
Adding colour to the buttons - Colour is used like a traffic light system, green for go (positive), red for stop (negative, think about this for a moment), and blue which isn't a traffic light (neutral, a miscellaneous item)
/* STANDARD */
button:hover, .buttons a:hover{
background-color:
border:1px solid
color:
}
.buttons a:active{
background-color:
border:1px solid
color:
}
/* POSITIVE */
button.positive, .buttons a.positive{
color:
}
.buttons a.positive:hover, button.positive:hover{
background-color:
border:1px solid
color:
}
.buttons a.positive:active{
background-color:
border:1px solid
color:
}
/* NEGATIVE */
.buttons a.negative, button.negative{
color:
}
.buttons a.negative:hover, button.negative:hover{
background:
border:1px solid
color:
}
.buttons a.negative:active{
background-color:
border:1px solid
color:
}