How to set the keep-with-next property
Posted: Tue Jun 11, 2019 7:55 am
Hi guys,
I'm using Oxygen Author 21.1 and the "DITA Map PDF - based on HTML5 & CSS" transformation.
There are many occasions that I want a paragraph to stay with the next element. For example, an introductory sentence and the list or table below it. I tried to add the following code in my CSS template but it did not work:
Can any of you give me a hand?
Cheers,
Michael
I'm using Oxygen Author 21.1 and the "DITA Map PDF - based on HTML5 & CSS" transformation.
There are many occasions that I want a paragraph to stay with the next element. For example, an introductory sentence and the list or table below it. I tried to add the following code in my CSS template but it did not work:
Code: Select all
*[outputclass ~= "keep-with-next"] {
page-break-after:avoid;
}
Code: Select all
<p outputclass="keep-with-next">New features in this release are as follows:</p>
Cheers,
Michael