For Flare 10.2.1, PDF Target.
IF a CSS class includes the element page-break-before: always;, should not that class cause a page break even if the class is assigned to, say, a heading contained within a DIV?
I have a CSS class as follows:
Code: Select all
.pageBreakBefore
{
margin-top:0em;
page-break-before: always;
color: cornflowerblue;
}
I also have a DIV that I use to position a topic's main content flow relative to the topic's BODY element:
Code: Select all
div.bodyAlignment /*Use to position main body flow plus outdented headings for each media*/
{
margin: 0em 0em 0em 2em;
border: solid 1px magenta;
padding: none;
page-break-inside: avoid;
}(NOTE that in that DIV the page-break-inside: avoid; attribute is an attempt to circumvent the original problem, described in the last paragraph of this post. The point I want to make here is that removing page-break-inside: avoid; from the DIV does NOT change the behavior as described: Assigning .pageBreakBefore to an XHTML element that is then wrapped in div.bodyAlignment will cause Flare to NOT place that XHTML element at the top of a new PDF page.)
The following screenshot illustrates the two behaviors (the fontcolor: cornflowerblue; and border: magenta; are there to help me verify that the CSS elements are in fact being applied):
Is this the expected, or if you will the "legal" behavior of page-break-before: always; if contained within a DIV? Or is this a bug?
My original problem, the reason I added page-break-inside: avoid; to the DIV, was to get sub-topics to start on a new PDF page. I had thought that using TOC —> Properties —> Printed Output —> Break Type —> Page Layout Break, then choosing Page Type = Normal would be the easiest way to do that. But that setting doesn't work as expected either — I get page breaks but each page is gen'ed as type First rather than Normal. So I then tried page-break-before: always; which led me to my current problem…
Cheers & thanks for your help,
Riley
SFO