CSS Paged Media describes the page model that partitions a flow into pages. It defines the page model and paged media, adds functionality for pagination, page margins, page size and orientation, headers and footers, widows and orphans, and image orientation, enables page numbering and running headers/footers. Use this tag for questions related CSS Paged Media questions, as described on the W3C page.
CSS3 Paged Media describes how:
- page breaks are created and avoided;
- the page properties such as size, orientation, margins, border, and padding are specified;
- headers and footers are established within the page margins;
- content such as page counters are placed in the headers and footers;
- and orphans and widows can be controlled.
This module defines a page model that specifies how a document is formatted within a rectangular area, called the page box, that has finite width and height.
Although CSS3 does not specify how user agents transfer page boxes to sheets, it does include certain mechanisms for telling user agents about the intended page sheet size and orientation. In the general case, CSS3 assumes that one page box will be transferred to one surface of similar size.
References: