CSS properties - orphans

revision:


orphans property

- specifies the minimum number of lines that must be left at the bottom of a page or column.

CSS syntax : orphans: integer | initial | inherit;

Property values:

integer : specifies the minimum number of lines that must be left at the bottom of a page or column. Negative values are not allowed

initial : sets this property to its default value.

inherit : inherits this property from its parent element.

JavaScript syntax: object.style.orphans="3"

example: orphans property
code:
                @media print {
                    orphans: 4;
                    widows: 2;
                  }