Skip to content

Instantly share code, notes, and snippets.

@jgv
Created May 13, 2010 17:12
Show Gist options
  • Save jgv/400080 to your computer and use it in GitHub Desktop.
Save jgv/400080 to your computer and use it in GitHub Desktop.
cross browser gradients using only css
.gradient {
background:#f3961c; /* no css3 */
background:-moz-linear-gradient(top, #f9d835, #f3961c); /* FF */
background:-webkit-gradient(linear, left top, left bottom, from(#f9d835), to(#f3961c)); /* webkit */
background:linear-gradient(top, #f9d835, #f3961c); /* i wish... */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9d835', endColorstr='#f3961c'); /* ie */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment