CSS paged media
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.
Reference
>Properties
At-rules
@page
page-orientation
descriptorsize
descriptor- Margin descriptors
- Margin at-rules
The CSS paged media module also introduces the bleeds
and marks
descriptors of the @page
at-rule. Currently, no browsers support these features.
Pseudo-classes
Guides
- Printing
-
Tips and techniques for helping improve web content printer output.
Related concepts
- CSS fragmentation module
break-after
propertybreak-before
propertybreak-inside
propertyorphans
propertywidows
property
Specifications
Specification |
---|
CSS Paged Media Module Level 3> |
See also
- CSS fragmentation module
- CSS media queries module