Archive for May, 2007

h1

[css] – stylesheet to solve incorrect page break in printing

May 8, 2007

 Try to use this stylesheet for printing and it could solve your printing problem when it comes to multiple page printing, especially for table-based reports.

@media print {
h1            { page-break-before: always }
h1, h2, h3,
h4, h5, h6    { page-break-after: avoid }
ul, ol, dl    { page-break-before: avoid }
}