Paragraph

Ensure consistent rendering of paragraph elements.

Overview

Resource location:@import url("https://jorsek.github.io/pdfgen.github.io/styles1.1/modules/dita/paragraph.css");
paragraphs default

Common Customizations

You can apply customizations by pasting the following code snippets under the @import rules.

Adjust the paragraph margins
paragraph increase margins
/* Increase margins between paragraphs. */
div.p,
p,
.p {
  margin-top: 15px;
}
/* Optional: Decrease paragraph margins after sectiontitles. */
.sectiontitle ~ .p,
.sectiontitle ~ p {
    margin-top: 5px;
}
Adjust the widows and orphans settings
The widows property determines the minimum number of lines allowed to move to a new page. The orphans property determines the minimum number of lines allowed to stay at the end of a given page before the paragraph (or other element) breaks to another page.

By default, the minimum number of widows and orphans is 1. For more information, see https://www.princexml.com/doc/11/paged/#widows-and-orphans.

/* Determine the number of allowed orphans */
p {
    orphans: 2;
}

/* Determine the number of allowed widows */
p {
    widows: 2;
}
Tip: You can determine the number of widows and orphans for other selectors like div, .codeblock, or .lq.