Skip to content

Instantly share code, notes, and snippets.

@steinsag
Created January 18, 2013 20:23
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 steinsag/4568202 to your computer and use it in GitHub Desktop.
Save steinsag/4568202 to your computer and use it in GitHub Desktop.
Some simple CSS to define a background gradient.
header nav {
position: relative;
border-top: 1px solid #73BBCF;
border-bottom: 1px solid #73BBCF;
}
header nav {
padding: 12px 0;
font-weight: bold;
font-size: 0.875em;
background-image: -moz-linear-gradient(top, #008DC2 0%, white 25%);
background-image: -webkit-linear-gradient(top, #008DC2 0%, white 25%);
background-image: -ms-linear-gradient(top, #008DC2 0%, white 25%);
background-image: -o-linear-gradient(top, #008DC2 0%, white 25%);
background-image: linear-gradient(top, #008DC2 0%, white 25%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment