CSS print styles allow us to optimize how a website appears when a user prints it. The @media print rule makes it possible to apply specific styles for printing, such as hiding unnecessary elements or setting different font sizes.
Rules defined in an @media print block only apply when the document is printed. This is especially useful for removing navigation menus, ads, or footers from the printed version.
In this example, navigation and footer elements do not appear when printing, and the text is displayed larger and in black.
CSS print rules allow us to set page sizes and margins with the @page rule and to add page breaks (page-break) for better content organization.
In this example, the page margin is set to 2 cm, and each new chapter heading starts on a new page.
When designing print styles, it is important to keep the content readable and ensure that only necessary elements are included on paper.
Please sign in to ask Lara about CSS print styles.
Select Language
Set theme
© 2025 ReadyTools. All rights reserved.