danfickle / danfickle/openhtmltopdf

Margin top after page break

Open
#889 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.2k
Forks
423
PR merge metrics
No merged PRs in 30d

Description

I've got multiple h1s in a document (for sections of content) and they have margin-top: 1cm; (to space them away from the previous section content).
When there's not enough space at the bottom of the page they get moved to the new page which is as expected, but there's a blank space at the top of the page.

Is there a way to fix this so h1s have space above them where needed but they appear flush with the top of a new page?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.