We have a simple page with a header (h3 in this example), immediately followed by a long table. To avoid a page break between header and table we give the CSS:
The table should break after table rows with class 'summary':
The table breaks as expected and spans pages 2 and 3.
But between the header (on top of page 1) and the start of the table there is a huge gap!
Why is the first part of the table not located on the first page?
h3 { page-break-after:avoid; }
The table should break after table rows with class 'summary':
tr.summary { page-break-after:auto; }
The table breaks as expected and spans pages 2 and 3.
But between the header (on top of page 1) and the start of the table there is a huge gap!
Why is the first part of the table not located on the first page?
- - -
Johann