Forum Bugs

Display: table problem with page-break-before

rwo-amplixs
When we put in the tag div on line 50 in the pdf-1.html the inline style "display: table". Then the page-break-before is ignored. The table is not placed on the next page. While we indicate this on line 52 of the file.
See the pdf file pdf-1.pdf.

In the file pdf-2.html we have removed display table. The table is then placed on the next page. See pdf file pdf-2.pdf.

How can we fix this problem? We need the display: table on line 50 of the html file.
  1. pdf-1.html8.5 kB
  2. pdf-1.pdf43.1 kB
  3. pdf-2.html8.5 kB
  4. pdf-2.pdf43.5 kB
markbrown
Hi,

I'm not sure exactly what's going on here, but the same behaviour occurs with Chrome for example. Why not put the page-break-before on the div in question rather than its first child? That seems to work for me.

Cheers,
Mark
markbrown
This has been fixed in the latest build.