[pmwiki-users] TOC no scrolling please
Petko Yotov
5ko at 5ko.fr
Mon Jan 19 02:30:02 PST 2026
The solution will depend on this information:
Do you print the page directly, by pressing File-Print or Ctrl+P in your
browser, or do you first go to Page?action=print?
Do you want to print the full table of contents, or to hide it?
If the user has closed the table of contents, what should be printed,
nothing, or the closed box, or the box should open and expand?
Petko
--
If you upgrade : https://www.pmwiki.org/Upgrades
On 19/01/2026 11:00, Martin Cuno wrote:
> Hello friends,
>
> I'm experimenting with Table of Contents (TOC),
> https://www.pmwiki.org/wiki/PmWiki/TableOfContents:
>
> My problem: I need to print PDFs of pages containing a TOC. If the TOC
> is too long, it gets cut off at the bottom. How can I prevent this? In
> the browser view, a scrollbar appears if the TOC is too long.
> Following the instructions on the linked page, I'm experimenting with:
>
> PmTOCdiv {font-size: 90%; max-height: 2000px; overflow: hidden; @LH12}
>
> etc. in local.css, but without success.
>
> (@LH12 = line height; this is my workaround, but it's not satisfactory)
>
> What can I do? Why doesn't "overflow: hidden" work?
>
> And: could a simple option be added to prevent scrolling when needed?
>
> Thanks! Martin
More information about the pmwiki-users
mailing list