Skip to content

Instantly share code, notes, and snippets.

@diegofelix
Created November 6, 2012 11:20
Show Gist options
  • Select an option

  • Save diegofelix/4024119 to your computer and use it in GitHub Desktop.

Select an option

Save diegofelix/4024119 to your computer and use it in GitHub Desktop.
CSS: Linear Gradient CSS
/* change the color to your colors */
background-color: #666666;
background-color: #0081c2;
background-image: -moz-linear-gradient(top, #666666, #333333);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#666666), to(#333333));
background-image: -webkit-linear-gradient(top, #666666, #333333);
background-image: -o-linear-gradient(top, #666666, #333333);
background-image: linear-gradient(to bottom, #666666, #333333);
background-repeat: repeat-x;
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff666666', endColorstr='#ff333333', GradientType=0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment