Skip to content

Instantly share code, notes, and snippets.

@caromill
Created May 7, 2013 13:28
Show Gist options
  • Save caromill/5532546 to your computer and use it in GitHub Desktop.
Save caromill/5532546 to your computer and use it in GitHub Desktop.
Chart background
#chart_background {
position: absolute;
top: 100px;
left: 100px;
width: 666px;
height: 333px;
background: #008000; /* Old browsers */
background: -moz-linear-gradient(25deg, #008000 0%, #eec900 51%, #ff0000 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,#008000), color-stop(51%,#eec900), color-stop(100%,#ff0000)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(25deg, #008000 0%,#eec900 51%,#ff0000 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(25deg, #008000 0%,#eec900 51%,#ff0000 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(25deg, #008000 0%,#eec900 51%,#ff0000 100%); /* IE10+ */
background: linear-gradient(25deg, #008000 0%,#eec900 51%,#ff0000 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#008000', endColorstr='#ff0000',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment