Reputation: 1312
I'm generating a word document with PHP (HTML with ms-word header), is there a way make a page break ?
Right now I'm witing a lot of <p> </p>
until the page changes, but that's far from satisfying.
Upvotes: 4
Views: 2147
Reputation: 1
A page-break has no meaning in HTML. It's more elegant to mark up the text which should be on the next page with, let's say
Upvotes: -2
Reputation: 212412
I've not tested to see if it works, but you could try:
<div style="page-break-before:always" />
Upvotes: 5