nice black button
by James Doyle
HTML
<a href="#" class="button">click me</a>
CSS
body {
margin: 15px;
}
.button {
text-decoration: none;
color: white;
font-size: 13px;
border: 1px solid #000;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
text-shadow: 0 1px 0 rgba(0,0,0,0.8);
padding: 4px 16px;
border-radius: 4px;
display: inline-block;
background: #444444; /* Old browsers */
background: -moz-linear-gradient(top, #444444 0%, #333333 50%, #222222 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#444444), color-stop(50%,#333333), color-stop(100%,#222222)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #444444 0%,#333333 50%,#222222 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #444444 0%,#333333 50%,#222222 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #444444 0%,#333333 50%,#222222 100%); /* IE10+ */
background: linear-gradient(to bottom, #444444 0%,#333333 50%,#222222 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#444444', endColorstr='#222222',GradientType=0 ); /* IE6-9 */
}
.button:active {
border: 1px solid #000;
box-shadow: inset 0 -1px 0 rgba(255,255,255,0.2);
text-shadow: 0 1px 0 rgba(0,0,0,0.3);
background: #222222; /* Old browsers */
background: -moz-linear-gradient(top, #222222 0%, #333333 50%, #444444 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#222222), color-stop(50%,#333333), color-stop(100%,#444444)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #222222 0%,#333333 50%,#444444 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #222222 0%,#333333 50%,#444444 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #222222 0%,#333333 50%,#444444 100%); /* IE10+ */
background: linear-gradient(to bottom, #222222 0%,#333333 50%,#444444 100%); /* W3C */
filter:...