How Print Style Sheets Differ

Depending on the complexity of your page, the print version might be very similar or indeed very different than the screen version.

Suggestions for print style sheets:

  • Use appropriate fonts and font sizes, using points rather than pixels, since the former work best for printing. For more details, consult A Property’s Value on page 124 as well as pages 152159.
  • Hide sections like sidebars or ads that need not be printed (using the display property described on page 190).
  • Remove background colors and images and use colors that print reasonably in black and white (see pages 160 and 172).
  • Adjust margins, if necessary (see page 176).
  • Control page breaks and other print-specific properties (see pages 212214).
  • Explain to your ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.