Problem on align two tables side by side #2726
Unanswered
elsenthil123
asked this question in
Q&A
Replies: 1 comment 3 replies
-
This is an unfortunate result of how Dompdf renders content, which is sequentially and elements start on the current page. So even though this layout should conceptually support side-by-side rendering it's just not handled very well. If one of the tables is always under a page you should place that one first in the document. Then it would render as expected. One update I hope to see in the future is for floated content (e.g. your aligned tables) to pause rendering at the end of a page so that in-flow content can render. Making that change would allow us to support your particular layout. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to align two tables side by side.
My table rows in foreach loop. some times my table rows go to the 2nd or 3rd page also. If the values go to the 2nd or 3rd page, my right side table starts from the 2nd or 3rd page.
If the rows end on a single page both right and left side tables are working properly.
My pdf output files are attached bellow
2 page readings.pdf
Single page readings.pdf
My code is
My full code is attached here for your reference
pdf2.txt
Ana anyone please correct me where i am doing mistake on my code
Beta Was this translation helpful? Give feedback.
All reactions