Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Position:relative better styling for wrapper when printing #693

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hallvors
Copy link

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.

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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant