Question

I'm working in SalesForce. I have a page that generates a PDF based on user specified paramaters. The trouble is that most sometimes the <p> run between pages and it looks terrible.

Is there a way (using CSS or HTML) to force a page break if the <p> will run between pages?

Was it helpful?

Solution

page-break = <div style="page-break-after:always;"></div>

Not breakable area = <div style="page-break-inside:avoid"> Not breakable html area </div>

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top