W3C home > Mailing lists > Public > www-style@w3.org > April 2009

RE: [css3-multicol] page-break-inside and columns

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Tue, 7 Apr 2009 11:30:42 -0700
To: "Philip TAYLOR (Ret'd)" <P.Taylor@Rhul.Ac.Uk>
CC: CSS <www-style@w3.org>
Message-ID: <5D97C7EB4695104AB6345E56FE356B1941054B166C@NA-EXMSG-C125.redmond.corp.microsoft.com>
> and I was interpreting this quite strictly : no breaking
> /within/ elements; I think that the scenario you are
> postulating is the avoidance of a break /between/ elements,
> is it not ?
The element I had in mind would be a container added by the author to explicitly relate the image and paragraph and then specify the break constraint e.g. using Hakon's proposed syntax:

.together { page-break-inside:avoid-all; }

<div class="together">
	<img />
	<p>In the image above...</p>
</div>

So while the author wants no break inside the div, you could argue he really aims to avoid a break between the image and paragraph elements. (In practice, I think he'd really want the image to be in the same column as the beginning of that paragraph i.e. not so much avoid any break as control where it may occur).

Still, there may be many scenarios where breaking a paragraph element across columns may be undesirable e.g. math formulas, poem stanzas, short code samples, or simply classified ads which would be unwieldy if broken across the columns of a tall page.  Or in an index, where a longer two-line entry should not wrap across columns. Or one of the smaller textual ads in the Yellow Pages.

Received on Tuesday, 7 April 2009 18:39:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:46:58 GMT