This is an archived forum post. The information may be outdated. Contact us if you have any questions.

<div style="page-break-after: always"> not working

callen wrote on 2011-05-10:
Hi,

I'm trying to use <div style="page-break-after: always"></div> to add page breaks in my pdf files. It doesn't seem to work - help!

I will email you an example html file to info@pdfcrowd.com. FYI, I am using these pdf crowd settings in my php code:

$client->setPageWidth("210mm");
$client->setPageHeight("297mm");
$client->setHorizontalMargin("10mm");
$client->setVerticalMargin("5mm");
Thanks, Charles.
mesposito wrote on 2011-06-15:
I am also having an issue with this. The snippet:

.....

</td></tr></table></div><div style='page-break-after:always;'>&nbsp;</div><table width=725px><tr><td>
....
Does not break the page between the tables.
support wrote on 2011-06-15:
Please, could you post complete code of your document or send it to info@pdfcrowd.com?

Here is a working example which inserts a page break between two tables. You can try it out here
<table>
<tr><td>table1</td></tr>
</table>
<div style='page-break-after:always;'>&nbsp;</div>
<table>
<tr><td>table2</td></tr>
</table>
mesposito wrote on 2011-06-16:
Support thanks for the reply. The full file is 3 meg - is there an alternative way to send?
support wrote on 2011-06-16:
Just zip the HTML file and send it to info@pdfcrowd.com