Forum Moderators: open

Message Too Old, No Replies

Printing a web document

setting page breaks

         

chrman

10:33 pm on Oct 12, 2001 (gmt 0)



Is there a way to set page breaks at specific locations on a web page so that it will print in a certain way without images etc overlapping a page break? I figure there must be some sort of a trigger that can control this without actually spacing out the info on the page manually

oilman

10:42 pm on Oct 12, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



CSS2 supports various printing related functions such as 'page-break-before' and 'page-break-after' and others. I've never used them so I can't comment much more than I know they're out there.

On the other hand if I am providing a printable version of something I usually just shoot it into a pdf and provide a link for the surfer.

tedster

10:42 pm on Oct 12, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yep, there is in CSS-2. Here's a reference:

[w3.org...]

gethan

8:54 am on Oct 14, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The page breaks work in IE 5+

<P style='page-break-after'> - (or something very close - don't have the code to hand) is now placed in my page everywhere I need to force a break.

But unfortunately I couldn't get IE5 to recognise many of the other css2 directives - eg. The landscape option.

Anyone with experience with IE6 does it handle more of these directives?

chrman

5:35 pm on Oct 17, 2001 (gmt 0)



If you figure out how to set the landscape option i would really like to know how you did it. The nature of the pages require the user to print in landscape in order for the text and pictures to fit properly. Right now i have a note instructing the user to manually change the printing to landscape mode but if i can get it to automatically set it up, so much the better

kapow

2:20 pm on Oct 18, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This may be off-beam, but I wonder if it is possible to fix the page dimensions with white gifs of the right height and width in a table?

Brett_Tabke

10:56 am on Oct 24, 2001 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Too many variables Kapow.

Landscape is there, but not supported by IE6:
[w3.org...]