Monday, December 28, 2009

Page Breaks

It is possible to give modern web browsers a "hint" to help them put page breaks in the right places when printing out web pages with Stylesheets. Here is an example:

<p style="page-break-before: always;">

This will force a page break when printing, before the start of this particular

element.

Not all web browsers support CSS perfectly. If you must have absolute layout control and are primarily concerned with printing, consider using PDF rather than HTML.

No comments:

Post a Comment