Created
August 3, 2015 15:03
-
-
Save craigbutcher/9e2eee8652e5e47190de to your computer and use it in GitHub Desktop.
A Better Ordered List (ABOL)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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