Skip to content

Instantly share code, notes, and snippets.

@thechinnster
Created June 26, 2012 18:11
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 thechinnster/2997622 to your computer and use it in GitHub Desktop.
Save thechinnster/2997622 to your computer and use it in GitHub Desktop.
CSS: Cross Browser Gradient
/* FireFox 3.6 */
background-image: -moz-linear-gradient(top, #9FD4FF, #008CFF);
/* Safari4+, Chrome */
background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #008CFF),color-stop(1, #9FD4FF));
/* IE6,IE7 */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#9FD4FF', endColorstr='#008CFF');
/* IE8 */
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#9FD4FF', endColorstr='#008CFF')";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment