Skip to content

Instantly share code, notes, and snippets.

@WebInspectInc
Created January 20, 2012 20:22
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 WebInspectInc/1649373 to your computer and use it in GitHub Desktop.
Save WebInspectInc/1649373 to your computer and use it in GitHub Desktop.
Random color pallete
/**
* Random color pallete
*/
h1 {
margin:0;
padding:50px;
}
h1:first-child {
background:#1F5EFF;
}
h1:nth-child(2) {
background:#281BFF;
}
h1:nth-child(3) {
background:#251CD4;
}
h1:nth-child(4) {
background:#150DB8;
}
h1:nth-child(5) {
background:#0D0696;
}
<!-- content to be placed inside <body>…</body> -->
<section>
<h1>Heading 1</h1>
<h1>Heading 2</h1>
<h1>Heading 3</h1>
<h1>Heading 4</h1>
<h1>Heading 5</h1>
</section>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment