I have created a simple print style sheet and what is happening is that when the text reaches the end of the first page, instead of flowing to the next page, like in word, the text seems to be splitting and half is on the first page and the next half is on the second page. Is there a way with css to correct this. I have done a grab to illustrate the problem, Thanks
css
body {margin:0; padding:0; line-height: 1.4em; word-spacing:1px; letter-spacing:0.2px; font: 13px Arial, Helvetica,"Lucida Grande", serif; color: #ff0000; }
table { border: none; }
.noPrint { display:none; }
enter image description here
1 Answer 1
You can use the following to force a page break before a specific element:
#yourElementID {page-break-before:always;}
Edit:
I had assumed there was some other elements above your table, but looking again, you may just be printing reams and reams of table data? I am not sure how to solve this if that is the case.