I want to develop a new HTML form/screen for an employee to fill out, and when they print it the screen/form prints two separate pages. I want to be able to control where the 2nd page starts.
| SitePoint Sponsor |
I want to develop a new HTML form/screen for an employee to fill out, and when they print it the screen/form prints two separate pages. I want to be able to control where the 2nd page starts.



First off you need to specify a print stylesheet in your HTML.
Then find where you want your page break to go, look for the last HTML tag before your break, give that tag an class="pagebreak"Code:<link rel="stylesheet" href="style.css" type="text/css"> media="print"
then
Code:#pagebreak { page-break-after: always }
Technology is dominated by two types of people:
those who understand what they do not manage,
and those who manage what they do not understand.
I dont want to break a page. because its a dynamic page



It is only a pagebreak for the purposes of printing.
Technology is dominated by two types of people:
those who understand what they do not manage,
and those who manage what they do not understand.
i think what he is trying to say is that he cant use that because the page is created dynamically.


Originally Posted by milind_p1982
How do you expect to 'control where the 2nd page starts' without a page break?Originally Posted by milind_p1982
What blain tried to tell you is that you can add a CSS rule via an ID on the last element of the first page (or the first element on the second page, using page-break-before). You can set that ID in your server-side script.
Birnam wood is come to Dunsinane
Bookmarks