Skip to content

Instantly share code, notes, and snippets.

@andrew
Created July 30, 2009 09:38
Show Gist options
  • Select an option

  • Save andrew/158631 to your computer and use it in GitHub Desktop.

Select an option

Save andrew/158631 to your computer and use it in GitHub Desktop.
<!-- custom ol list-styles -->
<style type="text/css">
ol {
counter-reset: item;
margin-left: 0;
padding-left: 0;
}
li {
display: block;
margin-bottom: .5em;
margin-left: 2em;
}
li:before {
display: inline-block;
content: counter(item);
counter-increment: item;
width: 2em;
margin-left: -2em;
}
ol ol li:before{
content: counter(item, lower-latin) !important;
}
</style>
<ol>
<li>One</li>
<li>Two</li>
<li>Three</li>
<li>Four</li>
<li>Five</li>
<li>Six</li>
<li>Seven</li>
<li>Eight</li>
<li>
<ol>
<li>One</li>
<li>Two</li>
<li>Three</li>
<li>Four</li>
</ol>
</li>
<li>Ten<br>Items</li>
</ol>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment