W3C home > Mailing lists > Public > www-html@w3.org > November 2002

Re: Fw: Paged-media break points

From: Johannes Koch <koch@pixelpark.com>
Date: Fri, 01 Nov 2002 19:04:26 +0100
Message-ID: <3DC2C22A.50603@pixelpark.com>
To: Stephen Brooks <sb@stephenbrooks.org>
CC: www-html@w3.org

Stephen Brooks wrote:
> --[Pagination is covered by the CSS spec.]--
> 
>  OK, found it - it's in CSS2 not CSS1 where I had looked.  It's a shame
> their breaking algorithm doesn't take the <h1> <h2>... tags into account
> either.  I should have modified my suggestion to have an implicit break at
> level N before every <hN> tag.

CSS:
div.container {
   page-break-inside: avoid;
}

HTML:
<div class="container">
   <h2>Headline</h2>
   <p>article content</p>
   <p>article content</p>
</div>

As pagination is CSS related (not HTML), you should ask this question in 
www-style@w3.org.
-- 
Johannes Koch . IT Developer
Pixelpark AG . http://www.pixelpark.com
Rotherstraße 8 . 10245 Berlin . Germany
phone: +49 30 5058 - 1288 . fax: - 1355
Received on Friday, 1 November 2002 13:04:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:53 GMT