3 ms·
There are a lot of ways to do it [1]. PrinceXML extended their CSS implementation with a `leader()` generated content option. toc > chapter:after { c
by erichurkman 13y ago
There are a lot of ways to do it [1]. PrinceXML extended their CSS implementation with a `leader()` generated content option.
toc > chapter:after {
content: leader(dotted) target-counter(attr(href, page), page);
}
which does the right thing typographically, even with line wraps and multiple columns. Really great for tables of content and indices.
[1] Another example: http://www.w3.org/Style/Examples/007/leaders.en.html http://www.w3.org/Style/Examples/007/leaders.en.html