Changing HTML Body Style Attributes

This example describes how to modify the attributes in the Styles.Default HTML Body style. The Styles.Default template contains only three style attributes for the body of an ODS HTML document: LEFTMARGIN= (or MARGINLEFT=), RIGHTMARGIN= (or MARGINRIGHT=) and PAGEBREAKHTML=. Figure 14.17 shows the specifications for the Body style.

The following PROC TEMPLATE step changes the right margin from 8 pixels to 2 pixels and the left margin from 8 pixels to 0 pixels. It does not modify PAGEBREAKHTML=, so its setting remains the same as was defined in Styles.Default.

PROC TEMPLATE;
  DEFINE STYLE styles.chgbody;
  PARENT=styles.default;
    CLASS Body / marginright = 2
                 marginleft = 0;
  end;
run;

The SAS NOCENTER option must ...

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.