Numbering paragraphs with CSS
Revision as of 13:43, 11 June 2019 by Michael Murtaugh (talk | contribs) (Created page with "https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Lists_and_Counters/Using_CSS_counters <source lang="css"> .chapter { counter-reset: paragraph; padding-left: 20px...")
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Lists_and_Counters/Using_CSS_counters
.chapter {
counter-reset: paragraph;
padding-left: 20px;
}
.page p {
width: 400px;
}
.page p:before {
position: absolute;
margin-left: -20px;
color: #CCC;
content: counter(paragraph);
counter-increment: paragraph;
}