Skip to content

Instantly share code, notes, and snippets.

@sorensen
Created October 21, 2011 21:55
Show Gist options
  • Save sorensen/1305091 to your computer and use it in GitHub Desktop.
Save sorensen/1305091 to your computer and use it in GitHub Desktop.
CSS Push Button
/* =============================================================================
Red push button
========================================================================== */
.push-button {
display: inline-block;
width: 50px;
height: 50px;
background-color: #ff0000;
text-transform: uppercase;
position: relative;
padding: 15px;
line-height: 50px;
text-align: center;
text-decoration: none !important;
font-weight: bold;
color: #fff;
font-size: 14px;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
bottom: 0;
margin: 0;
transition: 0.15s linear;
-moz-transition: 0.15s linear;
-webkit-transition: 0.15s linear;
box-shadow: 0 5px 0 #8b0000, 0 0 10px rgba(0, 0, 0, 0.3) inset, 8px 10px 4px rgba(0, 0, 0, 0.4);
-moz-box-shadow: 0 5px 0 #8b0000, 0 0 10px rgba(0, 0, 0, 0.3) inset, 8px 10px 4px rgba(0, 0, 0, 0.4);
-webkit-box-shadow: 0 5px 0 #8b0000, 0 0 10px rgba(0, 0, 0, 0.3) inset, 8px 10px 4px rgba(0, 0, 0, 0.4);
border: none;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
}
.push-button:active {
bottom: -5px;
box-shadow: 0 0 0 #8b0000, 0 0 20px rgba(0, 0, 0, 0.5) inset;
-moz-box-shadow: 0 0 0 #8b0000, 0 0 20px rgba(0, 0, 0, 0.5) inset;
-webkit-box-shadow: 0 0 0 #8b0000, 0 0 20px rgba(0, 0, 0, 0.5) inset;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment