Skip to content

Instantly share code, notes, and snippets.

Created March 20, 2013 17:32
Show Gist options
  • Select an option

  • Save anonymous/5206654 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/5206654 to your computer and use it in GitHub Desktop.
PRTYBTN's Uses transitions on hover, which is a nice little touch.
.prtybtn {
padding : 2px 7px 4px;
border : 1px solid #ddd;
cursor : pointer;
color : #ddd;
background : #969696; /* Old browsers */
background : -moz-linear-gradient(top, #969696 0%, #6b6b6b 64%); /* FF3.6+ */
background : -webkit-gradient(linear, left top, left bottom, color-stop(0%,#969696), color-stop(64%,#6b6b6b)); /* Chrome,Safari4+ */
background : -webkit-linear-gradient(top, #969696 0%,#6b6b6b 64%); /* Chrome10+,Safari5.1+ */
background : -o-linear-gradient(top, #969696 0%,#6b6b6b 64%); /* Opera 11.10+ */
background : -ms-linear-gradient(top, #969696 0%,#6b6b6b 64%); /* IE10+ */
background : linear-gradient(to bottom, #969696 0%,#6b6b6b 64%); /* W3C */
filter : progid:DXImageTransform.Microsoft.gradient( startColorstr='#969696', endColorstr='#6b6b6b',GradientType=0 ); /* IE6-9 */
-webkit-transition : all 150ms linear;
/*IE*/
*position : relative;
*top : 6px;
}
.prtybtn .text {
*position : relative;
*bottom : 2px;
font-size : 11px;
}
<button class="prtybtn">
<span class="text">click me</span>
</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment