Re: Controlling page breaks in printouts

Brian Candler (
Fri, 21 Jun 1996 10:56:23 -0700 (PDT)

Date: Fri, 21 Jun 1996 10:56:23 -0700 (PDT)
From: Brian Candler <>
To: Dan Delaney <>
Subject: Re: Controlling page breaks in printouts
In-Reply-To: <>
Message-Id: <Pine.BSD/>

> Consider this:
> <H1>Headline</H1>
> Large paragraph, say, 20 lines or so.
> </BLOCK>
> Now that would certainly keep the headline from being orphaned, but it 
> would make it so that if there wasn't enough room at the bottom of the 
> page for the ENTIRE PARAGRAPH, then it would take it to the next pages. 

Yeah, I concede that point: with my method, you'd have to put the 
</BLOCK> after the first few sentences, which would mean that the <BLOCK> 
container would overlap with the <P>

I also concede that browsers should by themselves prevent orphaned
<H>eaders (and first/last lines of paragraphs too) when printing. However
it is still possible that you might want to include, say, a chunk of code
or an example as a <PRE> which is important enough to keep together on one
page - so at least it should have a "keep lines together" attribute. Can I
do this with stylesheets as they are already defined? 

I also quite like using

<B>This is a very important point</B>

i.e. using a pair of rules to highlight a paragraph; this looks good both 
on screen and printed, but only as long as all three elements are kept