Skip to content

Instantly share code, notes, and snippets.

@Shoora
Forked from trumball/Continued List Ordering
Last active February 28, 2019 03:36
Show Gist options
  • Save Shoora/6517683 to your computer and use it in GitHub Desktop.
Save Shoora/6517683 to your computer and use it in GitHub Desktop.
Continued List Ordering
ol.chapters {
list-style: none;
margin-left: 0;
}
ol.chapters > li:before {
content: counter(chapter) ". ";
counter-increment: chapter;
font-weight: bold;
float: left;
width: 40px;
}
ol.chapters li {
clear: left;
}
ol.start {
counter-reset: chapter;
}
ol.continue {
counter-reset: chapter 11;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment