Hi,
Am I able to specify page breaks in CSS ? I want to create a document that would have page breaks.
Or would I just have to estimate the amount of content and add some <BR> when needed?
| SitePoint Sponsor |

Hi,
Am I able to specify page breaks in CSS ? I want to create a document that would have page breaks.
Or would I just have to estimate the amount of content and add some <BR> when needed?



These CSS properties may help:
page-break-after,
page-break-before,
page-break-inside
A quick example:HTML Code:<div style="page-break-after:always"> Blah blah blah </div> <div> <h1>2nd Page</h1> <p>Blah blah blah</p> </div>


Yes you can. http://www.google.com/search?q=css+page-break
Bookmarks