From ca5f6d440f0373c1377700a43149a656878764f3 Mon Sep 17 00:00:00 2001 From: "Hallvord R. M. Steen" Date: Fri, 28 Oct 2016 11:09:21 +0200 Subject: [PATCH] Position:relative better styling for wrapper when printing Certain web browsers (e.g. Presto-based Opera) or HTML->PDF software (e.g. Prince) respects absolute positioning and takes content out of the normal flow. This means pagination of the printed document won't work as expected any more if ALL content is inside a position:absolute element. Printing or generating PDFs from pdf2htmlEX-generated documents would work better if the #page-container element wrapping everything is styled as position:relative for ``@media print`` mode. --- share/base.css.in | 1 + 1 file changed, 1 insertion(+) diff --git a/share/base.css.in b/share/base.css.in index 515134dc1..046c79572 100644 --- a/share/base.css.in +++ b/share/base.css.in @@ -64,6 +64,7 @@ } #sidebar { display:none; } #page-container { + position: relative; width:auto; height:auto; overflow:visible;