Skip to content

Instantly share code, notes, and snippets.

@robmcalister
Last active December 22, 2015 11:38
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 robmcalister/6466466 to your computer and use it in GitHub Desktop.
Save robmcalister/6466466 to your computer and use it in GitHub Desktop.
CSS Button
.button {
background: -moz-linear-gradient(top, #c96ceb, #a741b0);
background: -webkit-gradient(linear, 0 0, 0 100%, from(#c96ceb), to(#a741b0));
border: solid #a741b0 0px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
box-shadow: 0px 1px 3px #666666;
-moz-box-shadow: 0px 1px 3px #666666;
-webkit-box-shadow: 0px 1px 3px #666666;
color: #ffffff;
font-family: sans-serif;
font-size: 20px;
padding: 10px;
text-decoration: none;
text-shadow: 1px 1px 3px #666666;
/* IE specific stuff */
display: inline-block;
-ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorStr=#c96ceb, endColorStr=#a741b0);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr=#c96ceb, endColorStr=#a741b0);
}
.button:hover {
background: -moz-linear-gradient(top, #d97cfb, #b751c0);
background: -webkit-gradient(linear, 0 0, 0 100%, from(#d97cfb), to(#b751c0));
/* more IE specific stuff */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#c96ceb, endColorstr=#a741b0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment