Paged Media

CSS paged media refers to a set of CSS modules that enable the styling of documents for printing or displaying on other media.

CSS paged media provides additional features and properties specifically designed for printed documents. Using CSS paged media modules, you can create stylesheets that are specifically tailored for printed output, ensuring that the content looks good when it is printed on paper. This is particularly useful for generating reports, books, and other documents where the printed presentation is important.

CSS Paged Media – Related Properties

Following is the list of CSS properties related to paged media:

propertyvalue
break-afterTo break the page after an element. This is useful for controlling the layout of printed pages.
break-beforeTo break the page before an element. This is useful for controlling the layout of printed pages.
break-insideTo break the page inside an element. This is useful for controlling the layout of printed pages.
orphansSpecify the starting minimum number of lines placed at the bottom of the page.
widowsSpecify the last minimum number of lines placed at the top of the page.

CSS at-rules

Following is the list of CSS at-rules related to paged media:

propertyvalue
@pageSpecify the styles for printed pages when a web page is printed.

CSS Pseudo-Classes

Following is the list of CSS pseudo-classes related to paged media:

propertyvalue
:firstSelects the first page of a printed document.
:leftRepresents all left-hand pages of a printed document.
:rightRepresents all right-hand pages of a printed document.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *