Skip to content

Instantly share code, notes, and snippets.

@zincplusplus
Created December 19, 2011 16:13
Show Gist options
  • Save zincplusplus/1497813 to your computer and use it in GitHub Desktop.
Save zincplusplus/1497813 to your computer and use it in GitHub Desktop.
fibonaci
/**
* fibonaci
**/
BODY {
counter-reset: nra;
}
.fibonaci:after,
.fibonaci div:after {
content: " " counter(nra);
counter-increment: nra;}
#total:after {
content: " " counter(nra);
}
<div id="nr1"></div>
<div id="nr2"></div>
<div class="fibonaci"><div><div><div></div></div></div></div>
<div id="total">Total: </div>
{"page":"css","view":"split"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment