Forum Moderators: not2easy
page-break-before:alwaysand
page-break-after:alwayscan help here to force a page break before or after an element. Which I believe are OK cross-browser. There is also
page-break-inside,
orphansand
widows- but I'm not sure on current browser support? Anyone?
I would, however, try to avoid forcing a page-break mid table.
W3C:
[w3.org...]
I have never gotten the CSS page-break properties to work on any browser except Adobe Acrobat...
How long ago was that then? :) The popular browsers have at least supported the basic
page-break-beforeand
page-break-afterproperties for quite a while. I imagine though you could get problems if you are trying to page-break inside nested elements, tables and positioned elements?
I had a dabble with page-breaks quite a while back and ran a few tests... the browsers did at times vary it what they produced, but the following did at least produce 3 separate pages on FF1.0, Opera7 and IE5 at the time (it was a while ago!)...
<p style="page-break-after:always;">Page 1</p>
<p style="page-break-after:always;">Page 2</p>
<p>Page 3</p>