I'm trying to make one of my sites "printer friendly" so I create a css file only for printing.
<link rel="stylesheet" type="text/css" href="../print.css" media="print" />
In this css I changed some things and I added the following code:
H1, H2, H3, H4, H5, H6 { page-break-after: avoid;
page-break-inside: avoid }
p {
widows : 3;
orphans : 3;
text-align: justify}
to avoid titles printed in other page than its following texts, and to avoid "widows" and "orphan" lines...
But it doen't work. I tried it in Internet Explorer, Firefox, Opera and Konkeror, but none of these seem to accept these css rules.
Any suggestion?
<link rel="stylesheet" type="text/css" href="../print.css" media="print" />
In this css I changed some things and I added the following code:
H1, H2, H3, H4, H5, H6 { page-break-after: avoid;
page-break-inside: avoid }
p {
widows : 3;
orphans : 3;
text-align: justify}
to avoid titles printed in other page than its following texts, and to avoid "widows" and "orphan" lines...
But it doen't work. I tried it in Internet Explorer, Firefox, Opera and Konkeror, but none of these seem to accept these css rules.
Any suggestion?
