Skip to content

Instantly share code, notes, and snippets.

@saki007ster
Created September 3, 2013 05:07
Show Gist options
  • Save saki007ster/6419886 to your computer and use it in GitHub Desktop.
Save saki007ster/6419886 to your computer and use it in GitHub Desktop.
This gist is a css button.
<!DOCTYPE html><html><head>
<style type="text/css">
.button_example{
border:1px solid #616261; -webkit-border-radius: 3px; -moz-border-radius: 3px;border-radius: 3px;font-size:12px;font-family:arial, helvetica, sans-serif; padding: 10px 10px 10px 10px; text-decoration:none; display:inline-block;text-shadow: -1px -1px 0 rgba(0,0,0,0.3);font-weight:bold; color: #FFFFFF;
background-color: #7d7e7d; background-image: -webkit-gradient(linear, left top, left bottom, from(#7d7e7d), to(#0e0e0e));
background-image: -webkit-linear-gradient(top, #7d7e7d, #0e0e0e);
background-image: -moz-linear-gradient(top, #7d7e7d, #0e0e0e);
background-image: -ms-linear-gradient(top, #7d7e7d, #0e0e0e);
background-image: -o-linear-gradient(top, #7d7e7d, #0e0e0e);
background-image: linear-gradient(to bottom, #7d7e7d, #0e0e0e);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#7d7e7d, endColorstr=#0e0e0e);
}
.button_example:hover{
border:1px solid #4a4b4a;
background-color: #646464; background-image: -webkit-gradient(linear, left top, left bottom, from(#646464), to(#282828));
background-image: -webkit-linear-gradient(top, #646464, #282828);
background-image: -moz-linear-gradient(top, #646464, #282828);
background-image: -ms-linear-gradient(top, #646464, #282828);
background-image: -o-linear-gradient(top, #646464, #282828);
background-image: linear-gradient(to bottom, #646464, #282828);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#646464, endColorstr=#282828);
}
</style></head>
<body>
<a class="button_example" href="#">PREVIEW BUTTON</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment