Dynamic Table of Contents Page Numbers #639
Replies: 3 comments 9 replies
-
So I'd use something like: ul.toc li a::after {
content: target-counter(attr(href), page);
float: right;
} See: https://www.w3.org/TR/css-gcpm-3/#target-counter |
Beta Was this translation helpful? Give feedback.
-
@GlitchWitch did you solve this issue? caniuse.com doesn't even reference |
Beta Was this translation helpful? Give feedback.
-
Hello @mutschler , I'm facing the same issue trying to add a TOF at the second page, every link must show the correct page number. I'm using the browsershot@5, puppeteer@24 and chromium@132. Could you please share a working example? Thank you. |
Beta Was this translation helpful? Give feedback.
-
Has anyone here ever successfully setup a dynamic table of contents?
We are trying to convert an existing template used in Google docs with a ToC on page 2, however since the titles for content can be on different pages depending on the height of the content the ToC page numbers are not static.
Any suggestions for how to handle this besides just removing the ToC page numbers all together?
Beta Was this translation helpful? Give feedback.
All reactions