Skip to content

Instantly share code, notes, and snippets.

@sashtown
Created July 7, 2012 12:20
Show Gist options
  • Save sashtown/3066252 to your computer and use it in GitHub Desktop.
Save sashtown/3066252 to your computer and use it in GitHub Desktop.
Linear gradient syntax
section.linear-gradient {
background-color: #333333;
background-image: -webkit-gradient(linear, left top, left bottom, from(#333333), to(#999999)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #333333, #999999); /* Chrome 10+, Saf5.1+, iOS 5+ */
background-image: -moz-linear-gradient(top, #333333, #999999); /* FF3.6+ */
background-image: -ms-linear-gradient(top, #333333, #999999); /* IE10 */
background-image: -o-linear-gradient(top, #333333, #999999); /* Opera 11.10+ */
background-image: linear-gradient(to bottom, #333333, #999999);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment