Chapter 11
Style Attributes
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 833
Style Attributes Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 833
Style Attributes Detailed Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 844
Style Attribute Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 877
Overview
Style attributes influence the characteristics of individual cells, tables, documents,
graphs, and HTML frames. Style attributes exist within style elements and are specified
by the STYLE statement or the CLASS statement. The default value for an attribute
depends on the style that is in use. For information about styles, style elements, and style
attributes, see “Understanding Styles, Style Elements, and Style Attributes” in Chapter
14 of SAS 9.4 Output Delivery System: Procedures Guide. For information about using
style attributes with ODS Statistical Graphics, see the chapter on controlling the
appearance of your graphics in SAS Graph Template Language: User's Guide.
Style attributes can be supplied by SAS or user-defined. Style attributes can be
referenced with a style reference. See “Understanding Style References ” in Chapter 14
of SAS 9.4 Output Delivery System: Procedures Guide and “style-reference” on page
881 for more information.
The implementation of an attribute depends on the ODS destination that formats the
output. When creating HTML output, the implementation of an attribute depends on the
browser that is used. For information about viewing the attributes in a style, see
“Viewing the Contents of a Style” in Chapter 14 of SAS 9.4 Output Delivery System:
Procedures Guide.
For a list of the values that style attributes can specify, see “Style Attribute Values” in
Chapter 14 of SAS 9.4 Output Delivery System: Procedures Guide. For a list of style
elements that you can specify style attributes in, see “Style Elements” on page 805.
Style Attributes Tables
For detailed information about these style attributes and their aliases, see “Detailed
Information for All Style Attributes” in Chapter 14 of SAS 9.4 Output Delivery System:
Procedures Guide.
833
Table 11.1 Table of General Style Attributes
Attribute Task Destinations Affected Items
“ABSTRACT=ON | OFF” (p. 844) Specify whether styles
used in an HTML
document are used in CSS
style files
Markup family HTML
documents
“ACTIVELINKCOLOR=color” (p. 845) Specify the color that a link
in an HTML document
changes to after you click
it, but before the browser
opens that file
Markup family HTML
documents
“ASIS=ON | OFF” (p. 845) Specify how to handle
leading spaces and line
breaks in an HTML
document
Markup family,
printer family, and
RTF
Table cells and
HTML
documents
“BACKGROUNDCOLOR=color” (p. 845) Specify the color of the
background of tables, table
cells, or graphs
Markup family,
printer family, and
RTF
Table cells,
tables, graphs
“BACKGROUNDIMAGE="string"” (p. 845) Specify an image to use as
the background
Markup family,
PCL, PS, and
TAGSETS.RTF.
Table cells,
tables, graphs.
For
TAGSETS.RTF,
only applies to
the document.
“BACKGROUNDPOSITION=position” (p.
846)
Specify the position of the
background of the tables,
table cells, or graphs
Markup family,
printer family, and
RTF
Tables, graphs,
and HTML
documents
“BACKGROUNDREPEAT=option” (p. 847) Specify whether an image
is repeated horizontally,
vertically, both, or not
repeated
Markup family Individual tables
or table cells,
graphs
“BODYSCROLLBAR=YES | NO | AUTO” (p.
847)
Specify whether to put a
scroll bar in the frame that
references the body file
Markup family Individual frames
in HTML output
“BODYSIZE=dimension | dimension% | * ” (p.
847)
Specify the width of the
frame that displays the
body file in the HTML
frame file
Markup family Individual frames
in HTML output
“BORDERBOTTOMCOLOR=color ” (p.
847)
Specify the color of the
bottom border of the table
Markup family,
printer family,
RTF, and
Measured RTF
Bottom border of
a table or table
cell
834 Chapter 11 • Style Attributes
Get SAS 9.4 Output Delivery System, 3rd 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.