Skip to content

Instantly share code, notes, and snippets.

@drublic
Created February 10, 2012 13:36
Show Gist options
  • Save drublic/1789677 to your computer and use it in GitHub Desktop.
Save drublic/1789677 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
ul li:nth-child(4n+2),
ul li:nth-child(4n+1) {
background: #ddd;
}
<!-- content to be placed inside <body>…</body> -->
<ul>
<li>a</li>
<li>a</li>
<li>b</li>
<li>b</li>
<li>a</li>
<li>a</li>
</ul>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment