RE: Does anyone know of a way to insert a Page Break in a HTML do cument?

Subject: RE: Does anyone know of a way to insert a Page Break in a HTML do cument?
From: "Jochim, Rainer 3139 PPE-QA2" <Rainer -dot- Jochim -at- de -dot- heidelberg -dot- com>
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Thu, 22 Nov 2001 11:35:15 +0100

For the w3c recommendation refer to:

For Microsoft's implementation refer to:

Defining the page break property in an external css will effect all tags of
that kind within the html document. E.g. if you add the "page-break-before:
always" property to third level headings (h3) ALL third level headings will
start on a new printed page.
(If the browser supports this function.)

Adding a style to only one occurrence of a tag within the html document lets
you tweak the document much more.
(It might though be a bit cumbersome with generated documents. You'd have to
remember where you did what each time the document is regnerated from the
database or from another source. ;-)

Another option to selectively assign properties is defining a "class". Then
you could assign this class to any paragraph where you need it.
Let's say you define a class "PB" in the the stylesheet:
.PB {page-break-before: always;}
Then you could assign this class to paragraphs <p class="PB"> or to any
hierarchy level of headings <h1 class="PB">, <h2 class="PB">.


> -----Original Message-----
> From: Cheryl Lambert [mailto:clambert01 -at- yahoo -dot- com]
> Sent: Mittwoch, 21. November 2001 21:19
> Subject: re: Does anyone know of a way to insert a Page Break
> must use the "page-break-before" or "page-break-after" style sheet
> property *on an HTML tag* (i.e., you cannot define this in an external
> style sheet file or in an embedded style sheet definition).
> Valid values
> for these style sheet properties are "always" and "auto". My reference
> book says it works for IE4 (buggy) and NS6 (IE6 wasn't out
> yet when the
> book was written). Another reference book says you *can* define an
> embedded or external style definition. You'll need to test it.


Collect Royalties, Not Rejection Letters! Tell us your rejection story when you
submit your manuscript to iUniverse Nov. 6 -Dec. 15 and get five free copies of
your book. What are you waiting for?

Your monthly sponsorship message here reaches more than
5000 technical writers, providing 2,500,000+ monthly impressions.
Contact Eric (ejray -at- raycomm -dot- com) for details and availability.

You are currently subscribed to techwr-l as: archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit for more resources and info.

Previous by Author: RE: Does anyone know of a way to insert a Page Break in a HTML do cume nt?
Next by Author: Creating a Search tool question
Previous by Thread: Re: Creating API documentation
Next by Thread: Subject: image conversion tools

What this post helpful? Share it with friends and colleagues:

Sponsored Ads