header overlapping page content on second page #3454
-
quotation20240506_101922.pdf
i have used dompdf for this |
Beta Was this translation helpful? Give feedback.
Answered by
bsweeney
May 7, 2024
Replies: 1 comment 6 replies
-
Would need to see more of your HTML and CSS to provide feedback. For example, you excluded the header styling, and there's no indication of how you're managing the spacing on the first page. Note tht absolutely or fixed positioned elements are placed within the bounds of the body. You can ensure there is no content overlap by setting page margins and pushing the content into those margins. For example:
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You add the necessary margin to the body (page):
then position the header into that space using negative coordinates:
Actually, it looks like you're already attempting to position the header into the margin with
top: -20px
, but that's not enough to fully encompass the header since the content has a height of 50px.