Try that:
Code:
<!DOCTYPE HTML>
<html>
<head>
<title> CSS image button </title>
<style type="text/css">
#btn1 {
height:150px; width:150px;
background-image: url("http://upload.wikimedia.org/wikipedia/commons/9/92/Easy_button.JPG");
background-size: 150px 150px;
background-repeat: no-repeat;
display: inline-block;
}
#btn2 {
height:100px; width:100px;
background-image: url("http://25.media.tumblr.com/tumblr_m8s5qtbyI41qe1z7co1_400.gif");
background-size: 100px 100px;
background-repeat: no-repeat;
display: inline-block;
}
.button {
padding: 5px;
border-top: 1px solid #777; border-left: 1px solid #777;
border-bottom: 2px solid #000; border-right: 2px solid #000;
}
.button:hover {
padding: 5px;
border-top: 2px solid #000; border-left: 2px solid #000;
border-bottom: 1px solid #777; border-right: 1px solid #777;
}
</style>
</head>
<body>
<a href="http://www.google.com/" id="btn1" class="button"> </a>
<a href="http://www.webdeveloper.com/" id="btn2" class="button"> </a>
</body>
</html>
All code given is free and non-refundable.
Bookmarks