widow/orphan list items
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 37
- Joined: Tue Apr 13, 2021 9:48 pm
widow/orphan list items
Post by Jeff_Reynolds »
Does anyone have a suggestion to prevent page breaks from causing single list items to split off from their peers?
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
Re: widow/orphan list items
The widows and orphans properties apply only to lines of text, while a list item may have a large text that wraps on multiple lines. These properties control the number of lines of text (not list items) that move to a new page.
Other ways of glueing together list items is to avoid page breaks between them:
You could do it just for the last list item:
Or just for a specific list item, that is marked with an outputclass attribute that contains one of the page-break-before, page-break-after, or page-break-avoid values. See:
https://www.oxygenxml.com/doc/versions/ ... aking.html
Many regards,
Dan
Other ways of glueing together list items is to avoid page breaks between them:
Code: Select all
*[class ~= "topic/li"] {
page-break-before:avoid;
}
Code: Select all
*[class ~= "topic/li"]:last-of-type {
page-break-before:avoid;
}
https://www.oxygenxml.com/doc/versions/ ... aking.html
Many regards,
Dan
-
- Posts: 37
- Joined: Tue Apr 13, 2021 9:48 pm
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