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

> 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 UTC