Forum Bugs

caption of table not moved to new page with rest of table

Anonymous
I've got a table on which I've set "page-break-inside: avoid;". This works fine, except for the caption of the table... The caption is not moved to the next page along with the rest of the table.

<table>
<caption>Table caption</caption>
<tr>
 <th>table header</th>
</tr>
<tr>
 <td>table content</td>
</tr>
</table>


If the table is too long for the page, the table is moved to the next page but the caption stays behind on the previous page:

Table caption
-- page break --
table header
table content
xuehong
Hi,

Thank you for reporting the bug. We will fix it for the next release (coming very soon). Before then the workaround is to add:
caption { page-break-after: avoid }


Thanks again!

Xuehong
xuehong
This issue has been fixed in Prince 5.1 rev 4, so it should work fine now -- let us know how it goes! :)
Anonymous
Thanks, the problem was indeed fixed.