Forum Moderators: not2easy
<removed>
Go to print preview, move to the second print page and scroll to the bottom you will see that the page break splits a single line of text between two printed pages.
Any suggestions about how to stop this?
Thanks
Cliff
[edited by: encyclo at 2:12 am (utc) on Dec. 12, 2006]
[edit reason] no personal URLs please, see forum charter [/edit]
You could try (I usualy do) inserting style="page-break-after: always" into a tag that contains the text that you want to end the page with.
Or conversely style="page-break-before: always" in the tag that you want to start the page.
These only force page breaks in print formatting and don't change the screen layout in any way.
Anyone have any ideas?
Thanks
Cliff
[edited by: SuzyUK at 4:11 pm (utc) on Dec. 12, 2006]
[edit reason] Please no URLs : see TOS #13 [WebmasterWorld.com] [/edit]
in the print.css try adding or increasing top/bottom padding and/or margin on the body element, it is strange that it cuts a text line in half horizontally!
However Print margins are outwith the full control of CSS as the user will have their preferences set in their browser. You could also try slightly adjusting line height and font-size (which should be pt for print) which might help stop it happening if you can hit an optimum value inside the printer margins. However again it's likely that not everyone will see the problem depending on their default settings.
Oh and try tried looking at it on different IE machines to test the theory, also lastly IE did have problems if the content to be printed is in a floated div, it's usually possible to remove floats in a printed version if that's the case
sorry can't be more help, but when using any CSS you can only really make suggestions to the browser/printer and unfortunately printer settings can vary a lot
Suzy