How to set the keep-with-next property
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 30
- Joined: Mon Jul 10, 2017 2:18 am
How to set the keep-with-next property
Post by shanweizhong »
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
-
- Posts: 30
- Joined: Mon Jul 10, 2017 2:18 am
Re: How to set the keep-with-next property
Post by shanweizhong »
Thanks Dan. My bad. I enclosed the element that follows in the <p> tag... Please ignore my question.
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service