Simulating Page Breaks Using Cascading Style Sheets

One of the first questions people ask about HTML output is how they can set it up so that the pages break properly when they print their results from a Web browser. The short answer: it depends.

A Web browser is a tool meant for looking at files, not printing them. HTML output flows continuously, so the whole concept of a page break is foreign to a browser. Some browsers support page breaks in Cascading Style Sheet (CSS) format. In that case, the default ODS style creates HTML output with proper page breaks, as shown in Figure 3.13.

The output is too small to read, but you can see that the pages break nicely between tables. This sample output contains the results from a PROC TABULATE step followed ...

Get Output Delivery System: The Basics and Beyond 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.