Control where content splits across pages.
/* Reference page number / See page <a href="#section2">Section 2</a> / Renders: See page (page 12) */ ul.toc a::after content: leader('.') target-counter(attr(href), page); float: right; css pdf notes
/* Page numbering */ @page @bottom-right content: counter(page) " / " counter(pages); Control where content splits across pages
h1 counter-increment: chapter; counter-reset: section; h1 counter-increment: chapter
<div class="page-header">My PDF Report | Chapter 1</div> body counter-reset: chapter section;
Using running() and element() .