Printed output

CSS1 concentrates on the task of formatting text for presentation on-screen, within a Web browser. The different needs of printed output are not addressed, though it is possible simply to print out a document using the formatting already applied for screen presentation (the document is simply divided into page-sized chunks and printed in the same format).

CSS2 extensions give the stylesheet designer the ability to specify the size and orientation of the page output, the elements that should start a new page, decide how multi-line element content is broken over pages, define styles that only apply to screen or to page, and to define the active areas on the page to be printed on.

Separate print and screen formats

Before investigating ...

Get XML Companion, The, Third Edition 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.