Push Button (CSS)
Push Button effect
by Thomas Orthbandt
HTML
<div id="button">
<div class="innerBtn">
<a class="btn">ADD</a>
</div>
</div>
CSS
body {
background: #ddd;
}
#button {
width: 100px;
height: 100px;
border-bottom: 2px solid #eee;
background-image: -webkit-linear-gradient(top, #999, #d0d0d0 100%);
background-image: -moz-linear-gradient(top, #999, #d0d0d0 100%);
background-image: -ms-linear-gradient(top, #999, #d0d0d0 100%);
background-image: -o-linear-gradient(top, #999, #d0d0d0 100%);
background-image: linear-gradient(top, #999, #d0d0d0 100%);
-moz-border-radius: 100px;
-webkit-border-radius: 100px;
border-radius: 100px;
box-shadow: inset rgba(0, 0, 0, 0.8) 0px 5px 6px;
position: absolute;
}
.innerBtn {
width: 80px;
height: 80px;
left: 10px;
top: 12px;
background-image: -webkit-linear-gradient(top, #005b73, #d0d0d0 100%);
background-image: -moz-linear-gradient(top, #005b73, #d0d0d0 100%);
background-image: -ms-linear-gradient(top, #005b73, #d0d0d0 100%);
background-image: -o-linear-gradient(top, #005b73, #d0d0d0 100%);
background-image: linear-gradient(top, #005b73, #d0d0d0 100%);
-moz-border-radius: 100px;
-webkit-border-radius: 100px;
border-radius: 100px;
box-shadow: inset rgba(0, 0, 0, 0.6) 0px 5px 6px;
position: absolute;
-webkit-transition: all .1s ease-in;
-moz-transition: all .1s ease-in;
-ms-transition: all .1s ease-in;
-o-transition: all .1s ease-in;
transition: all .1s ease-in;
}
.btn {
position: absolute;
width: 60px;
height: 45px;
left: 10px;
top: 10px;
cursor: pointer;
font-family: "Lucida Sans";
font-weight: bold;
font-size: 23px;
color: #fff;
text-shadow: 0px 1px 0px #fff;
text-align: center;
padding-top: 15px;
-moz-border-radius: 100px;
-webkit-border-radius: 100px;
border-radius: 100px;
background-image: -webkit-linear-gradient(top, #3eabc9, #3eabc9 100%);
background-image: -moz-linear-gradient(top, #3eabc9, #3eabc9 100%);
background-image: -ms-linear-gradient(top, #3eabc9, #3eabc9 100%);
background-image: -o-linear-gradient(top, #3eabc9, #3eabc9 100%);
...