New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS and the page break #3439
Comments
What is happening, or not happening, What you've provided seems to work OK so you might need to provide a more complete sample document. |
Hi bsweeney , thanks for the quick reply and sorry for the incomplete question. A mail merge is being created, I have now narrowed this down to one letter. The PDF document is also created, but obviously the CSS is not taken into account in the address area and in the footer; this should display the four addresses next to each other. If I use file_put_contents('text.html', $text); an html file is created, which I think works correctly except for the page break https://freiescholle.info/vertreter/text.html but this does not work in the PDF. |
Hi mfeske , can you get the solution? |
Looking at this I see one potential issue in that the content of the letter is positioned absolutely, so page breaks don't apply to that content. The page is broken where you have styled it as such, and so the two content block do appear on separate pages. As for the addresses, I do see them next to each other if I set the page size large enough to accommodate the dimensions that were set. It could be that you just need to tweak the dimensions a bit. I believe you could achieve the layout a bit more easily by avoiding positioned elements, but I don't know what you're trying to achieve ultimately. |
Hello, I have a problem with the integration of CSS and the page break. I'm pretty sure that the application used to work (2 years ago).
Now the pagination is not working correctly and the CSS is not applied.
css
the text
....
The text was updated successfully, but these errors were encountered: