Forum Moderators: not2easy
When printing from IE (6) one or two text lines are missing with every page break. Does not occur when printing from Firefox - or Safari.
Hope someone knows about this...
[edited by: SuzyUK at 4:34 pm (utc) on Sep. 1, 2004]
[edit reason] ooops sorry no URLS per TOS #13 [webmasterworld.com] [/edit]
You can set the page break in CSS within the media/print format to force breaks where you like.
For example, this style forces a page break before each H1:
<style>
h1{
page-break-before: always;
}
</style>
For more details, do a google for "page break" +CSS
good luck,
Patrick
I examined the page break feature yesterday. I does not solve my problem. I cannot control the editor of the site. There may be a lot of H1's, but it is more likely that there will be only one, and the rest will be p's.
I tried with page size
@page { size: 5in 8in }
But that makes no difference...
does that make sense?
Patrick
The cut off bit is actually underneath a gutter it leaves for printing the page information on. There is nothing you can do about this gutter as it's an IE user preference I think.
one CSS solution is to provide bottom padding to the body for IE, but I don't think IE supports the @media:print
@media print {
body {padding: 0 0 30pt 0;}
}
rule embedded into your regular stylesheet, so a seperate stylesheet for print rules may be one option.. or alternatively just add
<style type="text/css" media="print">
body {padding: 0 0 30pt 0;}
</style>
under the call to your regular (media="all" or "screen"?)stylesheet in the HTML..
Suzy