Skip to content

Instantly share code, notes, and snippets.

@ardysnippets
Created March 13, 2012 07:26
Show Gist options
  • Save ardysnippets/2027415 to your computer and use it in GitHub Desktop.
Save ardysnippets/2027415 to your computer and use it in GitHub Desktop.
CSS: Cross-browser gradient
background: #40464e;
background-image: -khtml-gradient(linear, left top, left bottom, from(#40464e), to(#2d333b));
background-image: -moz-linear-gradient(top, #40464e, #2d333b);
background-image: -ms-linear-gradient(top, #40464e, #2d333b);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #40464e), color-stop(100%, #2d333b));
background-image: -webkit-linear-gradient(top, #40464e, #2d333b);
background-image: -o-linear-gradient(top, #40464e, #2d333b);
background-image: linear-gradient(top, #40464e, #2d333b);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#40464e', endColorstr='#2d333b', GradientType=0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment