I have one customer that absolutely insists his web pages print perfectly. Why? Because he refuses to look at his pages on the screen -- he tells his employees to print the website for him to look at. And since he looks at pages that way, he believes most of his customers do just this.
Needless to say, I've learned quite a few tricks to making a website print properly. I've already shared methods for making your website content printer-friendly [1], as well as making your website structure printer-friendly [2]. One important aspect of making your pages printer-friendly is by using CSS/XHTML page breaks.
There are numerous spots that are good for page breaks:
Luckily, using page breaks in CSS is quite easy.
@media all
{
.page-break { display:none; }
}
@media print
{
.page-break { display:block; page-break-before:always; }
}
<div class="page-break"></div>
<h1>Page Title</h1>
<!-- content block -->
<!-- content block -->
<div class="page-break"></div>
<!-- content block -->
<!-- content block -->
<div class="page-break"></div>
<!-- content block -->
<!-- content block -->
Links:
[1] http://davidwalsh.name/optimizing-your-website-content-for-print-using-css/
[2] http://davidwalsh.name/optimizing-your-website-structure-for-print-using-css/
[3] http://davidwalsh.name/advanced-css-printing-css-page-breaks