My table style which happily allows tables to break across pages as needed has the following elements set:
Code: Select all
page-break-after: avoid;
page-break-before: avoid;
page-break-inside: auto;
which ensures the tables is with text that introduces it and with the figure caption that follows it.
Where my table style which insists everything is kept together (including the figure caption which follows it) has just these two set:
Code: Select all
page-break-inside: avoid;
page-break-after: avoid;
In both cases I use table styles. In my experience getting your table set up just right is such a fiddly thing, that I wouldn't begin define this inline, because I want to reuse what works for me from then on in every new job I do!