I have a weird situation here:
Apparently for no reason, some content is more narrow than the rest. Or to be more exact: some content is shifted to the right. It appears to be the body margin (20mm) doubled on the left.
I've put a debug style in my print CSS:
I'm not new to writing CSS for print. There is nothing in the styles of those affected elements that could cause this.
In Chrome print preview, everything looks alright.
Another annoying issue is that footers are missing for apparently no reason.
Are there any known bugs / scenarios that causes such a behavior? I can post code and files if needed.
For now, only screenshots:
pages 9-10: body-margins OK, but no footer
pages 11-12: body margin left too big, but footers appear
pages 19-20: body-margins OK, but again no footers
What's not 100% clear to me: What is the correct or preferred way to define page margins? via regular body CSS, or via @page ?
Apparently for no reason, some content is more narrow than the rest. Or to be more exact: some content is shifted to the right. It appears to be the body margin (20mm) doubled on the left.
I've put a debug style in my print CSS:
body {
border-left: 1px solid red;
border-right: 1px solid red;
}
I'm not new to writing CSS for print. There is nothing in the styles of those affected elements that could cause this.
In Chrome print preview, everything looks alright.
Another annoying issue is that footers are missing for apparently no reason.
Are there any known bugs / scenarios that causes such a behavior? I can post code and files if needed.
For now, only screenshots:
pages 9-10: body-margins OK, but no footer
pages 11-12: body margin left too big, but footers appear
pages 19-20: body-margins OK, but again no footers
What's not 100% clear to me: What is the correct or preferred way to define page margins? via regular body CSS, or via @page ?