|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
When using @media to set up a style sheet for printing, is it possible to force a pagebreak after 60 lines have been printed?
__________________
J. Birdsell, ![]() www.carry-on-scheff-fans.com |
|
#2
|
|||
|
|||
|
There is a page break property in CSS (MSIE), but to apply it specifically after 60 lines will be a bit tricky. You'll need to do some scripting to calculate where your lines are, and place them in appropriate elements.
{page-break-before : sBreak;} {page-break-after : sBreak;} |
|
#4
|
|||
|
|||
|
Thanks folks,
I used the "page-break-after: auto" in a perl script that was creating a dynamic report table. This worked great . Now I just need to figure out how to replicate the report header on each page. Thanks again. |
|
#5
|
|||
|
|||
|
Have you had any luck repeating the page headers? I would be interested in how you did it.
I am trying the same thing with PHP... |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS:: formatting printer output |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|