Skip to content

Instantly share code, notes, and snippets.

@konrad-gibaszewski
Last active October 5, 2015 07:58
Show Gist options
  • Save konrad-gibaszewski/2775008 to your computer and use it in GitHub Desktop.
Save konrad-gibaszewski/2775008 to your computer and use it in GitHub Desktop.
CSS background
/* linear-gradient( [ [ <angle> | to <side-or-corner> ,]? <color-stop> [, <color-stop>]+ ) */
background: rgb(238, 238, 238);
background: -moz-linear-gradient(top, rgba(238, 238, 238, 1) 0%, rgba(255, 255, 255, 1) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(238, 238, 238, 1)), color-stop(100%, rgba(255, 255, 255, 1)));
background: -webkit-linear-gradient(top, rgba(238, 238, 238, 1) 0%, rgba(255, 255, 255, 1) 100%);
background: -o-linear-gradient(top, rgba(238, 238, 238, 1) 0%, rgba(255, 255, 255, 1) 100%);
background: -ms-linear-gradient(top, rgba(238, 238, 238, 1) 0%, rgba(255, 255, 255, 1) 100%);
background: linear-gradient(top, rgba(238, 238, 238, 1) 0%, rgba(255, 255, 255, 1) 100%);
/* https://developer.mozilla.org/en/CSS/linear-gradient */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment