TEMPLATE Procedure: Creating a Style Template

Style Attributes Tables

For detailed information about these style attributes and their aliases, see Detailed Information for All Style Attributes.
Table of General Style Attributes
Attribute
Task
Destinations
Affected Items
ABSTRACT= ON | OFF
Specify whether styles used in an HTML document are used in CSS or LaTex style files
Markup family
HTML documents
ACTIVELINKCOLOR=color
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
Specify how to handle leading spaces and line breaks in an HTML document
Markup family, printer family, and RTF
Cells and HTML documents
BACKGROUNDCOLOR= color
Specify the color of the background of tables, cells, or graphs
Markup family, printer family, and RTF
Cells, tables, graphs
BACKGROUNDIMAGE="string"
Specify an image to use as the background
Markup family, PCL, and PS
Cells, tables, graphs
BACKGROUNDPOSITION=position
Specify the position of the background of the tables, cells, or graphs.
Markup family, printer family, and RTF
Tables, graphs, and HTML documents
BACKGROUNDREPEAT= option
Specify whether an image is repeated horizontally, vertically, both, or not repeated
Markup family
Individual tables or cells, graphs
BODYSCROLLBAR=YES | NO | AUTO
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% | *
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
Specify the color of the bottom border of the table
Markup family, printer family, RTF, and Measured RTF
Bottom border of a table
BORDERBOTTOMSTYLE= line-style
Specify the line style of the bottom border of the selected cell
Markup family, RTF, and Measured RTF
Bottom border of a cell
BORDERBOTTOMWIDTH=dimension
Specify the width of the bottom border of the table
Markup family, printer family, RTF, and Measured RTF
Bottom border of a table
BORDERCOLLAPSE= COLLAPSE | SEPARATE
Specify whether the border is collapsed or separated
Markup family, printer family, RTF, and Measured RTF
Tables
BORDERCOLOR= color
Specify the color of the border in a table or cell if the border is just one color
Markup family, printer family, RTF, and Measured RTF
Individual tables or cells
BORDERCOLORDARK= color
Specify the darker color to use in a border that uses two colors to create a three-dimensional effect
Markup family and printer family
Individual tables or cells
BORDERCOLORLIGHT= color
Specify the lighter color to use in a border that uses two colors to create a three-dimensional effect
Markup family and printer family
Individual tables or cells
BORDERLEFTCOLOR=color
Specify the color of the left border of a table
Markup family, printer family, RTF, and Measured RTF
Left border of a table
BORDERLEFTSTYLE= line-style
Specify the line style of the left border of the specified cell
Markup family, RTF, and Measured RTF
Left border of the specified cell
BORDERLEFTWIDTH=dimension
Specify the width of the left border of the table
Markup family, printer family, RTF, and Measured RTF
Left border of a table
BORDERRIGHTCOLOR=color
Specify the color of the right border of the table
Markup family, printer family, RTF, and Measured RTF
Right border of a table
BORDERRIGHTSTYLE= line-style
Specify the line style of the right border of the selected cell
Markup family, RTF, and Measured RTF
Right border of the selected cell
BORDERRIGHTWIDTH=dimension
Specify the width of the right border of the table
Markup family, printer family, RTF, and Measured RTF
Right border of a table
BORDERSPACING=dimension
Specify the thickness of the spacing between cells in a table
Markup family, RTF, printer family
Tables
BORDERTOPCOLOR=color
Specify the color of the top border of the table
Markup family, printer family, RTF, and Measured RTF
Top border of a table
BORDERTOPSTYLE= line-style
Specify the line style of the top border of the specified cell
Markup family, RTF, and Measured RTF
Top border of the specified cell
BORDERTOPWIDTH=dimension
Specify the width of the top border of the table
Markup family, printer family, RTF, and Measured RTF
Top border of a table
BORDERWIDTH= dimension
Specify the width of the border of the table
Markup family, RTF, printer family
Individual tables or cells
CELLPADDING=dimension | dimension%
Specify the amount of white space on each of the four sides of the content in a cell in the table
Markup family, RTF, printer family
Tables
CLASS="string"
Specify the name of the style sheet class to use in an HTML document for the table or cell
Markup family
Individual tables or cells
COLOR=color
Specify the color of the foreground in tables, cells, or graphs, which is primarily the color of text
Markup family, RTF, printer family
Individual tables or cells, graphs
CONTENTPOSITION=position
Specify the position, within the frame file, of the frames that display the contents and the page files
Markup family
Individual frames in HTML output
CONTENTSCROLLBAR=YES | NO |AUTO
Specify whether to put a scroll bar in the frames in the frame file that display the contents and the page files
Markup family
Individual frames in HTML output
CONTENTSIZE=dimension | dimension % | *
Specify the width of the frames in the frame file that display the contents and the page files
Markup family
Individual frames in HTML output
CONTENTTYPE="string"
Specify the value of the content type for pages in an HTML document that is sent directly to a web server rather than to a file
Markup family
Individual frames in HTML output
CONTRASTCOLOR=color
Specify the alternate colors for maps
Markup family, RTF, printer family
Graphs
DOCTYPE="string"
Specify the entire doctype declaration for the HTML document
Markup family
HTML documents
FILLRULEWIDTH= dimension
Place a rule of the specified width into the space around the text (or entire cell if there is no text) in a table where white space would otherwise appear
Printer family
HTML documents
FLYOVER="string"
Specify the text to show in a data tip for the cell
Markup family, PDF
Individual cells
FONT=font-definition
Specify a font definition to use in tables, cells, and graphs
Markup family, RTF, printer family
Individual tables or cells, graphs
FONTFAMILY="string-1<…, string-n>"
Specify the font to use in cells and graphs
Markup family, RTF, printer family
Individual tables or cells, graphs
FONTSIZE=dimension | size
Specify the size of the font for tables, cells, and graphs
Markup family, RTF, printer family
Individual tables or cells, graphs
FONTSTYLE= ITALIC | ROMAN | SLANT
Specify the style of the font for tables, cells, and graphs
Markup family, RTF, printer family
Individual tables or cells, graphs
FONTWEIGHT= weight
Specify the font weight of tables, cells, and graphs
Markup family, RTF, printer family
Individual tables or cells, graphs
FONTWIDTH=relative-width
Specify the font width of tables, cells, and graphs compared to the width of the usual design of the table, cell, or graph
Markup family, RTF, printer family
Individual tables or cells, graphs
FRAME=frame-type
Specify the type of frame to use on a table
Markup family, RTF, printer family
Tables
FRAMEBORDER=ON | OFF
Specify whether to put a border around the frame for an HTML file that uses frames
Markup family
Individual frames in HTML output
FRAMEBORDERWIDTH=dimension
Specify the width of the border around the frames for an HTML file that uses frames
Markup family
Individual frames in HTML output
FRAMESPACING=dimension
Specify the width of the space between frames for HTML that uses frames
Markup family
Individual frames in HTML output
HEIGHT=dimension
Specify the height of a cell, graph, or graphics in an HTML document 1
Markup family, RTF, printer family
Cells, HTML documents, and graphs
HREFTARGET="target"
Specify the window or frame in which to open the target of the link
Markup family
Individual cells
HTMLID="string"
Specify an ID for the table or cell
Markup family
Individual tables or cells
HTMLSTYLE="string"
Specify individual attributes and values for a table or cell in an HTML document
Markup family
Individual tables or cells
IMAGE="string"
Specify the image to appear in a graph
Markup family, printer family, and RTF
Graphs
LINKCOLOR=color
Specify the color for the links in an HTML document that have not yet been visited
Markup family, printer family, and RTF
HTML documents
LISTENTRYANCHOR=ON | OFF
Specify whether to make the entry in the table of contents a link to the body file
Markup family
HTML documents
LISTSTYLETYPE=string
Specify the string to use for the bullets in the contents file
Markup family
Individual frames in HTML output
MARGINBOTTOM= dimension
Specify the bottom margin for the HTML document
Markup family, printer family, and RTF
HTML documents
MARGINLEFT=dimension
Specify the left margin for the HTML document
Markup family, printer family, and RTF
HTML documents
MARGINRIGHT=dimension
Specify the right margin for the HTML document
Markup family, printer family, and RTF
HTML documents
MARGINTOP= dimension
Specify the top margin for the HTML document
Markup family, printer family, and RTF
HTML documents
NOBREAKSPACE= ON | OFF
Specify how to handle space characters
Markup family, printer family, and RTF
Individual cells
OVERHANGFACTOR= nonnegative-number
Specify an upper limit for extending the width of the column in an HTML document
Markup family and printer family
HTML documents
PADDING=dimension | dimension%
Specify the amount of white space between the content of the cell and the border
Markup family, RTF, printer family
Tables
PADDINGBOTTOM=dimension | dimension%
Specify the amount of white space on the bottom of the content of the cell in the table
Markup family, RTF, printer family
Tables
PADDINGLEFT=dimension | dimension%
Specify the amount of white space on the left side of the content of the cell in the table
Markup family, RTF, printer family
Tables
PADDINGRIGHT=dimension | dimension%
Specify the amount of white space on the right side of the content of the cell in the table
Markup family, RTF, printer family
Tables
PADDINGTOP=dimension | dimension%
Specify the amount of white space on the top of the content of the cell in the table
Markup family, RTF, printer family
Tables
PAGEBREAKHTML= "string"
Specify HTML to place at page breaks in an HTML document
Markup family
Tables, cells, and HTML documents
POSTHTML= "string"
Specify the HTML code to place after the table or cell
Markup family
Individual tables or cells
POSTIMAGE= "string" | fileref
Specify an image to place before the table or cell
Markup family
Individual tables or cells
POSTTEXT= "string"
Specify text to place after the cell or table
Markup family, printer family, and RTF
Individual tables or cells
PREHTML="string"
Specify the HTML code to place before the table or cell
Markup family
Individual tables or cells
PREIMAGE= "string" | fileref
Specify an image to place before the table or cell
Markup family, printer family, and RTF
Individual tables or cells
PRETEXT="string"
Specify text to place before the cell or table
Markup family, printer family, and RTF
Individual tables or cells
PROTECTSPECIALCHARS=ON | OFF | AUTO
Specify how less-than signs (<), greater-than signs (>), and ampersands (&) are interpreted in cells
Markup family, printer family, and RTF
Individual tables or cells
RULES=rule-type
Specify the types of rules to use in tables
Markup family, printer family, and RTF
Tables
STARTCOLOR= color
Specify the start fill color for a graph
HTML
Graphs
TAGATTR="string"
Specify text to insert in the HTML
Markup family
Individual cells
TEXTALIGN=alignment
Specify justification in tables, cells, and graphs
printer family and RTF
Individual tables or cells, graphs
TEXTDECORATION=presentation–options
Change the visual presentation of the text
Markup family, RTF, and printer family
Individual tables or cells
TEXTINDENT=n
Specify the number of spaces that the first line of output will be indented
Markup family, RTF, and printer family
Individual tables or cells
TEXTJUSTIFY= INTER_WORD | INTER_CHARACTER
Specify if the words of the text are to be spaced evenly or if the characters are to be evenly justified
HTML, RTF, and TAGSETS.RTF
Titles, footnotes, and text
TRANSPARENCY=dimension
Specify a transparency level for graphs
HTML
Graphs
URL="uniform-resource-locator"
Specify a URL to link to
Markup family, RTF, and printer family
Individual cells
VERTICALALIGN= BOTTOM | MIDDLE | TOP
Specify vertical justification
Markup family, printer family, and RTF
Individual cells and graphs
VISITEDLINKCOLOR= color
Specify the color for links that have been visited in an HTML document
Markup family
HTML documents
WATERMARK= ON | OFF
Specify whether to make the image that is specified by BACKGROUNDIMAGE= into a "watermark "
Markup family
HTML documents
WHITESPACE=options
Specify how the browser handles multiple white space characters and line breaks.
Markup family, printer family, RTF, and Measured RTF
Lines of text
WIDTH= dimension
Specify the width of a cell, table, line, or a graph
Markup family, printer family, and RTF
Tables
1 This attribute can also be used to influence other characteristics as described in another section of the table
Note: You can use the value _UNDEF_ for any style attribute. ODS treats an attribute that is set to _UNDEF_ as if its value had never been set, even in the parent or beyond.
Graphical style attributes can be used in graphical style elements for device-based graphics or template-based graphics (ODS graphics). Different style attributes are valid for different style elements. For a table of style elements and the style attributes that are valid in each one, see Style Elements Affecting Template-Based Graphics and Style Elements Affecting Device-Based Graphics.
Device-based graphics are all SAS/GRAPH output where there is a user-specified or default device (DEVICE= option) that controls certain aspects of the graphical output. Supplied device drivers are stored in the Sashelp.Devices catalog. Examples of device drivers are SASPRTC, GIF, WIN, ACTIVEX, PDF, and SVG. Common SAS/GRAPH procedures that produce device-based graphics are GPLOT, GCHART, and GMAP. Most device-based graphics produce a GRSEG catalog entry as output and use the GOPTIONS statement to control the graphical environment.
Template-based graphics include all SAS/GRAPH output where a compiled ODS template of type STATGRAPH is used to produce graphical output. Supplied templates are stored in Sashelp.Tmplmst. Device drivers and some global statements such as SYMBOL, PATTERN, AXIS, and LEGEND have no affect on this form of graphics. Common SAS/GRAPH procedures that produce template-based graphics are SGPLOT, SGPANEL, and SGRENDER, in addition to many SAS/STAT, SAS/ETS, and SAS/QC procedures. ODS graphics always produce output as image files and use the ODS GRAPHICS statement to control the graphical environment.
Table of Graphical Style Attributes
Attribute
Task
Graphics Environment
Affected Items
BACKGROUNDIMAGE="string"
Specify an image file path
Device-based graphics
Image that can be stretched, but not positioned in graph, chart, walls, floor
CAPSTYLE=line-shape
Specify the shape of the line at the end of a box whisker graph
Template-based graphics
Shape of line at end of box whisker
COLOR=color
Specify the color of the foreground in tables, cells, or graphs, which is primarily the color of text
All graphics environments
Background color of the graph, walls, or floor; color of text
CONNECT=connect-line-type
Specify characteristics of a box plot connect line
Template-based graphics
Box plot connect line
CONTRASTCOLOR=color
Specify the color a line or marker
Template-based graphics
Color of line or marker
DISPLAYOPTS="display-feautre"
Specify display features for graphs
Template-based graphics
Displayed features of box plots, ellipses, histograms, bands
DROPSHADOW= ON | OFF
Specify whether the drop shadow color for text is displayed
Device-based graphics
Drop shadow color for text
ENDCOLOR=color
Specify the final color used with a two- or three-color ramp
All graphics environments
Contours, gradient legends
FONT=font-definition
Specify a font definition to use in tables, cells, and graphs
All graphics environments
All text font attributes
FONTFAMILY="string-1<…, string-n>"
Specify the font to use in cells and graphs
All graphics environments
Font family
FONTSIZE=dimension | size
Specify the size of the font for tables, cells, and graphs
All graphics environments
Font size
FONTSTYLE= ITALIC | ROMAN | SLANT
Specify the style of the font for tables, cells, and graphs
All graphics environments
Font style
FONTSTYLE= ITALIC | ROMAN | SLANT
Specify the font weight of tables, cells, and graphs
All graphics environments
Font weight
FRAMEBORDER=ON | OFF
Specify whether there is a graph wall border
All graphics environments
Graph wall border
GRADIENT_DIRECTION= "YAXIS" | "XAXIS "
Specify the direction of the gradient
Device-based graphics
Graph background, legend background, charts, walls, floors
IMAGE="string"
Specify the path to an image
Device-based graphics
Image that can be positioned, but not stretched in graph, chart, walls, floor
LINESTYLE=pattern-number
Specify the pattern of a line
All graphics environments
Borders, axis lines, grid, reference
LINETHICKNESS=dimension
Specify the thickness of a line
All graphics environments
Thickness of line
MARKERSIZE=dimension
Specify a marker size
All graphics environments
Marker size
MARKERSYMBOL=marker-symbol
Specify a marker symbol
All graphics environments
Marker used
NEUTRALCOLOR=color
Specify the middle color of a three-color ramp
Template-based graphics
Contours, gradient legends
OUTPUTHEIGHT=dimension
Specify the height of a graph
All graphics environments
Height of graph
OUTPUTWIDTH=dimension
Specify the width of a graph
All graphics environments
Width of graph
STARTCOLOR= color
Specify the start fill color for a graph
All graphics environments
Contours, gradient legends
TEXTALIGN=alignment
Specify the alignment of an image
Device-based graphics
Image horizontal positioning
TICKDISPLAY= "INSIDE" | "OUTSIDE" | "ACROSS"
Specify the placement of all major and minor axis tick marks
Template-based graphics
Placement of all axis tick marks, major and minor
TRANSPARENCY=dimension
Specify the transparency of backgrounds, fills, lines, and markers
All graphics environments
Backgrounds, fills, lines, markers
VERTICALALIGN= BOTTOM | MIDDLE | TOP
Specify vertical justification
Device-based graphics
Image vertical positioning