The CSS paged media module defines the properties that control the presentation of content for print or any other media that splits content into discrete pages. It allows you to set page breaks, control printable areas, and style left and right pages differently.
The CSS paged media module specifies how pages are generated and laid out to hold fragmented content in a paged presentation, including content that is printed or represented as a print preview. The module defines functionality for controlling page margins, size, orientation, and headers and footers. It extends generated content to provide functionality for generating page numbers and running headers and footers.
The process of paginating content into generated pages and controlling breaks inside elements is covered in the CSS fragmentation module.
@page page-orientation descriptorsize descriptorThe CSS paged media module also introduces the bleeds and marks descriptors of the @page at-rule. Currently, no browsers support these features.
Tips and techniques for helping improve web content printer output.
break-after propertybreak-before propertybreak-inside propertyorphans propertywidows property| Specification |
|---|
| CSS Paged Media Module Level 3> |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_paged_media