I have no idea if anyone will find these useful, but here's the css:
- Code:
.css3_button {
font-size: 12px;
font-family: Verdana;
font-weight: bold;
background-color: hsl(120,70%,50%);
background-image: -webkit-radial-gradient(top,rgba(255,255,255,0.5),transparent);
background-image: -moz-radial-gradient(top,rgba(255,255,255,0.5),transparent);
background-image: -o-radial-gradient(top,rgba(255,255,255,0.5),transparent);
background-image: radial-gradient(top,rgba(255,255,255,0.5),transparent);
background-position: center top;
background-size: 150% 100%;
color: white;
text-shadow: 0px -1px 1px black, 0px 0px 3px white;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-o-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: inset 0px -3px 0px rgba(0,0,0,0.3), inset 0px 1px 0px rgba(255,255,255,0.3), 0px 2px 6px rgba(0,0,0,0.6);
-moz-box-shadow: inset 0px -3px 0px rgba(0,0,0,0.3), inset 0px 1px 0px rgba(255,255,255,0.3), 0px 2px 6px rgba(0,0,0,0.6);
-o-box-shadow: inset 0px -3px 0px rgba(0,0,0,0.3), inset 0px 1px 0px rgba(255,255,255,0.3), 0px 2px 6px rgba(0,0,0,0.6);
box-shadow: inset 0px -3px 0px rgba(0,0,0,0.3), inset 0px 1px 0px rgba(255,255,255,0.3), 0px 2px 6px rgba(0,0,0,0.6);
border: none;
cursor: pointer;
padding: 5px 10px 9px;
margin: 1px;
}
Just add the 'css3_button' to a
<button
>
element, and change the 'background-color' property as you see fit. eg:- Code:
<button class="css3_button" style="background-color: red;">CSS3 Awesomeness</button>
Cheers.