Skip to content

Instantly share code, notes, and snippets.

@craigbutcher
Created August 3, 2015 15:03
Show Gist options
  • Save craigbutcher/9e2eee8652e5e47190de to your computer and use it in GitHub Desktop.
Save craigbutcher/9e2eee8652e5e47190de to your computer and use it in GitHub Desktop.
A Better Ordered List (ABOL)
ol {
counter-reset: item;
margin: 0 0 20px 20px;
}
ol li {
display: block;
position: relative;
}
ol li:before {
content: counters(item, ".", decimal) " ";
counter-increment: item;
position: absolute;
margin: 0 100% 0 0;
right: 10px;
}
ol ol {
list-style-type: lower-latin;
margin: 0;
}
ol li:last-child {
margin: 0 0 10px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment