Skip to content

Instantly share code, notes, and snippets.

@ffoodd
Last active December 10, 2015 19:39
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 ffoodd/4482797 to your computer and use it in GitHub Desktop.
Save ffoodd/4482797 to your computer and use it in GitHub Desktop.
Chorégraphie de contenu
/**
* Chorégraphie de contenu
*/
body {
font: 3em Lucida Sans Unicode, Lucida Sans, sans-serif;
color: #333;
background: #F2F2E2;
}
ul {
margin: 1em auto;
width: 600px;
list-style: none;
display: table;
}
li {
background: white;
}
li + li {
background: #fafafa;
}
li + li + li {
background: #f6f6f6;
display: table-header-group;
}
li + li + li + li {
background: #f0f0f0;
display: table-footer-group;
}
<ul>
<li>Premier item</li>
<li>Deuxième item</li>
<li>Troisième item</li>
<li>Quatrième item</li>
</ul>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment