×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
1
Language: CSS
Posted by: Philip Rehberger
Added: Sep 14, 2016 12:10 AM
Views: 2
Tags: no tags
  1. ol.chapters {
  2.     list-style: none;
  3.     margin-left: 0;
  4. }
  5.  
  6. ol.chapters > li:before {
  7.     content: counter(chapter) ". ";
  8.     counter-increment: chapter;
  9.     font-weight: bold;
  10.     float: left;
  11.     width: 40px;
  12. }
  13.  
  14. ol.chapters li {
  15.     clear: left;
  16. }
  17.  
  18. ol.start {
  19.   counter-reset: chapter;
  20. }
  21.  
  22. ol.continue {
  23.   counter-reset: chapter 11;
  24. }