Forum Moderators: not2easy
I understand that I can use the page-break-inside attribute on block-level elements, so I surround each <table></table> block with a <div></div> block (also tried adding the attribute on the table element with no luck).
I have some very basic CSS:
div {
page-break-inside: avoid;
border: 1px solid blue;
}
This correctly places the border, but seems to have absolutely no effect as to creating a page break correctly. I still have a table that is running onto multiple pages instead of being pushed to the next page.
Am I asking the impossible? I have a bad feeling that since none of the block level elements inside the table (tr, td, etc) are actually spanning multiple pages that this is why I am seeing what I am seeing.
A note: If I use page-break-before: always in my div, then each table is displayed on its own page. But this is not exactly the behavior I'm wanting.
Any ideas?