Skip to content

Instantly share code, notes, and snippets.

@hmcclungiii
Created March 19, 2015 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hmcclungiii/96000ce7ea5bcdfa83aa to your computer and use it in GitHub Desktop.
Save hmcclungiii/96000ce7ea5bcdfa83aa to your computer and use it in GitHub Desktop.
A nice clickable button in css.
.button {
-webkit-border-radius: 10;
-webkit-box-shadow: 0px 1px 3px #666666;
-moz-border-radius: 10;
-moz-box-shadow: 0px 1px 3px #666666;
background: #F97878;
border-radius: 10px;
box-shadow: 0px 1px 3px #666666;
color: #ffffff;
font-family: Arial;
font-size: 14px;
font-weight: bold;
margin-top: 18px;
margin-left: 12px;
padding: 10px 20px 10px 20px;
text-shadow: 1px 0px 0px #666666;
text-decoration: none;
text-align: center;
width: 80%;
}
.button:hover {
background: #3cb0fd;
background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
text-decoration: none;
}
.button a {
color: #ffffff;
text-align: center;
text-decoration: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment