Skip to content

Instantly share code, notes, and snippets.

@flaviomuniz
Created November 10, 2012 17:45
Show Gist options
  • Save flaviomuniz/4051886 to your computer and use it in GitHub Desktop.
Save flaviomuniz/4051886 to your computer and use it in GitHub Desktop.
<html>
<head>
<style>
ol { counter-reset: item }
li { display: block }
li:before { content: counters(item, ".") " "; counter-increment: item }​
</style>
</head>
<body>
<ol>
<li>one</li>
<li>two
<ol>
<li>two.one</li>
<li>two.two</li>
<li>two.three</li>
</ol>
</li>
<li>three
<ol>
<li>three.one</li>
<li>three.two</li>
<ol>
<li>three.two.one</li>
<li>three.two.two</li>
</ol>
</ol>
</li>
<li>four</li>
</ol>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment