TEMPLATE Procedure: Creating a Style Template

Detailed Information for All Style Attributes

ABSTRACT= ON | OFF
specifies whether styles used in an HTML document are used in CSS or LateX style files.
ON
specifies that styles are used in CSS or LateX style files.
OFF
specifies that styles are not used in CSS or LateX style files.
Restriction:The ABSTRACT= attribute is valid only in markup family destinations.
ACTIVELINKCOLOR=color
specifies the color that a link in an HTML document changes to after you click it, but before the browser opens that file.
Restriction:The ACTIVELINKCOLOR= attribute is valid only in markup family destinations.
ASIS=ON | OFF
specifies how to handle leading spaces and line breaks in an HTML document.
ON
prints text with leading spaces and line breaks, in the same manner as the LISTING output.
OFF
trims leading spaces and ignores line breaks.
Default:OFF
Restriction:The ASIS= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
BACKGROUNDCOLOR= color
specifies the color of the background of the tables, cells, or graphs.
Alias:BACKGROUND=
Restriction:The BACKGROUNDCOLOR= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
Interaction:The CBACK= option in the SAS/GRAPH GOPTIONS statement overrides the BACKGROUNDCOLOR= attribute.
Tip:Generally, the background color of the cell overrides the background color of the table. You see the background color for the table only as the space between cells (see BORDERSPACING=dimension ).
BACKGROUNDIMAGE="string"
specifies an image in a table, cell, or graph to use as the background. Viewers can tile or stretch the image as the background for the HTML table or graph that the procedure creates. For graphs, the specified image is stretched.
string
is the name of a GIF or JPEG file. Use a simple filename, a complete path, or a URL. However, the most versatile approach is to use a simple filename and to place all image files in the local directory.
Restriction:The BACKGROUNDIMAGE= attribute is valid only in markup family destination, the PCL destination, and the PS destination.
Interaction:The BACKGROUNDIMAGE= attribute is overridden by the IBACK= and IMAGESTYLE=FIT options in the SAS/GRAPH GOPTIONS statement.
BACKGROUNDPOSITION=position
specifies the position of the background of the tables, cells, or graphs.
position can be one of the following:
  • BOTTOM
  • BOTTOM_CENTER
  • BOTTOM_LEFT
  • BOTTOM_RIGHT
  • CENTER
  • CENTER_BOTTOM
  • CENTER_CENTER
  • CENTER_LEFT
  • CENTER_RIGHT
  • CENTER_TOP
  • LEFT
  • LEFT_BOTTOM
  • LEFT_CENTER
  • LEFT_TOP
  • RIGHT
  • RIGHT_BOTTOM
  • RIGHT_CENTER
  • RIGHT_TOP
  • TOP
  • TOP_CENTER
  • TOP_LEFT
  • TOP_RIGHT
Default:TOP_LEFT
BACKGROUNDREPEAT= option
specifies whether an image is repeated horizontally, vertically, both, or not repeated. option can be one of the following:
NO_REPEAT
specifies that the image is not repeated.
REPEAT
specifies that the image is repeated both horizontally and vertically.
REPEAT_X
specifies that the image is repeated horizontally.
REPEAT_Y
specifies that the image is repeated vertically.
Restriction:The BACKGROUNDREPEAT= attribute is valid in most markup family destinations.
BODYSCROLLBAR=YES | NO | AUTO
specifies whether to put a scroll bar in the frame that references the body file.
YES
places a scroll bar in the frame that references the body file.
NO
specifies not to put a scroll bar in the frame that references the body file.
AUTO
places a scroll bar in the frame that references the body file only if needed.
Restriction:The BODYSCROLLBAR= attribute is valid only in markup family destinations.
Tip:Typically, BODYSCROLLBAR= is set to AUTO.
BODYSIZE= dimension | dimension% | *
specifies the width of the frame that displays the body file in the HTML frame file.
dimension
is a nonnegative number or the width of the frame specified as a percentage of the entire display.
*
specifies to use whatever space is left after displaying the content and page files as specified by the CONTENTSIZE= attribute.
Restriction:The BODYSIZE= attribute is valid only in markup family destinations.
Tip:If dimension is a nonnegative number then the unit of measure is pixels.

For information about the HTML files that ODS creates, see HTML Links and References Produced by the HTML Destination .

BORDERBOTTOMCOLOR=color
specifies the color of the bottom border of the table.
Restriction:The BORDERBOTTOMCOLOR= attribute is valid only in markup family destinations, printer family destinations, RTF destination, and the Measured RTF destination.
BORDERBOTTOMSTYLE= line-style
specifies the line style of the bottom border of the specified cell.
line-style
can be one of the following:
  • DASHED
  • DOTTED
  • DOUBLE
  • GROOVE
  • HIDDEN
  • INSET
  • OUTSET
  • RIDGE
  • SOLID
Restriction:The BORDERBOTTOMSTYLE= attribute is valid only in markup family destinations, the RTF destination, and the Measured RTF destination.
BORDERBOTTOMWIDTH=dimension
specifies the width of the bottom border of the table.
Restriction:The BORDERBOTTOMWIDTH= attribute is valid only in markup family destinations, the RTF destination, printer family destinations, and the Measured RTF destination.
BORDERCOLLAPSE= COLLAPSE | SEPARATE
specifies whether the border is collapsed or separated.
Default:SEPARATE
BORDERCOLOR= color
specifies the color of the border in a table or cell if the border is just one color.
Restriction:The BORDERCOLOR= attribute is valid only in markup family destinations, the RTF destination, printer family destinations, and the Measured RTF destination.
BORDERCOLORDARK= color
in a table or cell, specifies the darker color to use in a border that uses two colors to create a three-dimensional effect.
Restriction:The BORDERCOLORDARK= attribute is valid only in markup family destinations and printer family destinations.
Interaction:The BORDERCOLORDARK style attribute is ignored in HTML4 output because it is not part of the HTML4 standard. To create a color border in the HTML4 output, use the BORDERCOLOR= style attribute.
BORDERCOLORLIGHT= color
in a table or cell, specifies the lighter color to use in a border that uses two colors to create a three-dimensional effect.
Restriction:The BORDERCOLORLIGHT= attribute is valid only in markup family destinations and printer family destinations.
Interaction:The BORDERCOLORLIGHT style attribute is ignored in the creation of HTML4 output because it is not part of the HTML4 standard. To create a color border in HTML4 output, use the BORDERCOLOR= style attribute.
BORDERLEFTCOLOR=color
specifies the color of the left border of the table.
Restriction:The BORDERLEFTCOLOR= attribute is valid only in markup family destinations, the RTF destination, printer family destinations, and the Measured RTF destination.
BORDERLEFTSTYLE= line-style
specifies the line style of the left border of the specified cell.
line-style
can be one of the following:
  • DASHED
  • DOTTED
  • DOUBLE
  • GROOVE
  • HIDDEN
  • INSET
  • OUTSET
  • RIDGE
  • SOLID
Restriction:The BORDERLEFTSTYLE= attribute is valid only in markup family destinations, the RTF destination, and the Measured RTF destination.
BORDERLEFTWIDTH=dimension
specifies the width of the left border of the table.
Restriction:The BORDERLEFTWIDTH= attribute is valid only in markup family destinations, the RTF destination, printer family destinations, and the Measured RTF destination.
BORDERRIGHTCOLOR=color
specifies the color of the right border of the table.
Restriction:The BORDERRIGHTCOLOR= attribute is valid only in markup family destinations, the RTF destination, printer family destinations, and the Measured RTF destination.
BORDERRIGHTSTYLE= line-style
specifies the line style of the right border of the selected cell.
line-style
can be one of the following:
  • DASHED
  • DOTTED
  • DOUBLE
  • GROOVE
  • HIDDEN
  • INSET
  • OUTSET
  • RIDGE
  • SOLID
Restriction:The BORDERRIGHTSTYLE= attribute is valid only in markup family destinations, the RTF destination, and the Measured RTF destination.
BORDERRIGHTWIDTH=dimension
specifies the width of the right border of the table.
Restriction:The BORDERRIGHTWIDTH= attribute is valid only in markup family destinations, printer family destinations, RTF destination, and the Measured RTF destination.
BORDERSPACING=dimension
specifies the thickness of the spacing between cells in a table.
Alias:CELLSPACING=
Default:0
Restriction:The BORDERSPACING= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
Interaction:If BORDERWIDTH= is nonzero, and if the background color of the cells contrasts with the background color of the table, then the color of the cell spacing is determined by the table's background.
BORDERTOPCOLOR=color
specifies the color of the top border of the table.
Restrictions:The BORDERTOPCOLOR= attribute is valid only in markup family destinations, printer family destinations, RTF destination, and the Measured RTF destination.

To ensure that the top border color is created, specify the BORDERTOPWIDTH= and the BORDERTOPCOLOR= attribute for the RTF destination. For the RTF destination, specify the BORDERTOPCOLOR= attribute in conjunction with the BORDERTOPWIDTH= attribute to ensure that the top border color is created.

BORDERTOPSTYLE= line-style
specifies the line style of the top border of the specified cell.
line-style
can be one of the following:
  • DASHED
  • DOTTED
  • DOUBLE
  • GROOVE
  • HIDDEN
  • INSET
  • OUTSET
  • RIDGE
  • SOLID
Restrictions:The BORDERTOPSTYLE= attribute is valid only in markup family destinations, the RTF destination, and the Measured RTF destination.

For the RTF destination, specify the BORDERTOPSTYLE= attribute in conjunction with the BORDERTOPWIDTH= attribute to ensure that the style of the top border is the style that you specified.

BORDERTOPWIDTH=dimension
specifies the width of the top border of the table.
Restriction:The BORDERTOPWIDTH= attribute is valid only in markup family destinations, printer family destinations, RTF destination, and the Measured RTF destination.
BORDERWIDTH= dimension
specifies the width of the border of the table.
Restriction:The BORDERWIDTH= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
Tip:Typically, when BORDERWIDTH=0, the ODS destination sets RULES=NONE (see the discussion about RULES=rule-type) and FRAME=VOID (see the discussion about FRAME=frame-type).
CAPSTYLE=line-shape
specifies the shape of the line at the end of a box whisker. line-shape can be one of the following:
  • "BRACKET"
  • "LINE"
  • "NONE"
  • "SERIF"
CELLPADDING=dimension | dimension%
specifies the amount of white space on each of the four sides of the content in a cell in the table.
dimension
is a nonnegative number or the amount of white space on each of the four sides of the text in a cell specified as a percentage of the table.
Alias:PADDING
Restriction:The CELLPADDING= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
CLASS="string"
specifies the name of the style sheet class to use in an HTML document for the table or cell.
Alias:HTMLCLASS=
Restriction:The CLASS= attribute is valid only in markup family destinations.
COLOR=color
specifies the color of the foreground in tables, cells, or graphs, which is primarily the color of text.
Alias:FOREGROUND=
Restriction:The COLOR= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
Interaction:The COLOR= attribute is overridden by the CBACK= option in the SAS/GRAPH GOPTIONS statement.
Tip:In a table, the COLOR= attribute affects only the text that is specified with the PRETEXT=, POSTTEXT=, PREHTML=, and POSTHTML= attributes. To alter the font for the text that appears in the table, set the attribute for a cell.
CONNECT=connect-line-type
specifies the characteristics of a box plot connect line. connect-line-type can be one of the following:
  • "MAX"
  • "MEAN"
  • "MEDIAN"
  • "MIN"
  • "Q1"
  • "Q3"
CONTENTPOSITION=position
specifies the position, within the frame file, of the frames that display the contents and the page files. position can be one of the following:
LEFT
places the frames on the left.
Alias:L
RIGHT
places the frames on the right.
Alias:R
TOP
places the frames at the top.
Alias:T
BOTTOM
places the frames at the bottom.
Alias:B
Restriction:The CONTENTPOSITION= attribute is valid only in markup family destinations.
See:For information about the HTML files that ODS creates, see HTML Links and References Produced by the HTML Destination .
CONTENTSCROLLBAR=YES | NO |AUTO
specifies whether to put a scroll bar in the frames in the frame file that display the contents and the page files. (For information about the HTML files that ODS creates, see HTML Links and References Produced by the HTML Destination .)
YES
places a scroll bar in the frames in the frame file that display the contents and the page files.
NO
specifies not to put a scroll bar in the frames in the frame file that display the contents and the page files.
AUTO
specifies that the browser put a scrollbar on the table of contents frame only if the content in that panel is big enough to require scrolling.
Restriction:The CONTENTSCROLLBAR= attribute is valid only in markup family destinations.
Tip:Typically, CONTENTSCROLLBAR= is set to AUTO.
See:For information about the HTML files that ODS creates, see HTML Links and References Produced by the HTML Destination .
CONTENTSIZE=dimension | dimension % | *
specifies the width of the frames in the frame file that display the contents and the page files.
dimension
is a nonnegative number or the width of the frames specified as a percentage of the entire display.
*
specifies to use whatever space is left after displaying the body file as specified by the BODYSIZE= attribute.
Restriction:The CONTENTSIZE= attribute is valid only in markup family destinations.
Requirement:dimension % must be a positive number between 0 and 100.
Tip:If dimension is a nonnegative number, then the unit of measure is pixels.

BODYSIZE= dimension | dimension% | *

For information about the HTML files that ODS creates, see HTML Links and References Produced by the HTML Destination .

CONTENTTYPE="string"
specifies 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.
string
is the content type for the pages.
Requirement:string must be enclosed in quotation marks.
Tip:The value of string is usually "text/html".
Alias:HTMLCONTENTTYPE=
Restriction:The CONTENTTYPE= attribute is valid only in markup family destinations.
CONTRASTCOLOR=color
specifies the alternate colors for maps. The alternate colors are applied to the blocks on region areas in block maps.
Restriction:The CONTRASTCOLOR= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
DISPLAYOPTS="display-feautre"
specifies one or more display features for ODS graphs. To specify multiple features, enclose the list of features in quotation marks (for example: displayopts="fill caps mean"). "display-feautre" can be one of the following:
CAPS
displays caps at the ends of the whiskers.
Restriction:CAPS can be used only for box plots.
CONNECT
displays the line connecting multiple boxes.
Restriction:CONNECT can be used only for box plots.
FILL
displays filled boxes, bars, ellipses, and bands.
Restriction:FILL can be used only for box plots, histograms, ellipses, and confidence bands.
MEAN
displays the mean symbol within a box.
Restriction:MEAN can be used only for box plots.
MEDIAN
displays the median line within the box.
NOTCHES
displays notched boxes.
Restriction:NOTCHES can be used only for box plots.
OUTLIERS
displays markers for the outliers.
Restriction:OUTLIERS can be used only for box plots.
OUTLINE
displays outlined ellipses and bars.
Restriction:OUTLINE can be used only for ellipses, bands, and histograms.
Requirement: You must inclose "display-feautre" in quotation marks.
DOCTYPE="string"
specifies the entire doctype declaration for the HTML document, including the opening "<!DOCTYPE" and the closing ">".
string
is the doctype declaration.
Requirement:string must be enclosed in quotation marks.
Alias:HTMLDOCTYPE=
Restriction:The DOCTYPE= attribute is valid only in markup family destinations.
DROPSHADOW= ON | OFF
specifies whether the drop shadow color for text is displayed.
ENDCOLOR=color
specifies the final color used with a two- or three-color ramp.
FILLRULEWIDTH= dimension
places 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.
Restriction:The FILLRULEWIDTH= attribute is valid only in printer family destinations.
Tip:If no text is specified, then FILLRULEWIDTH= fills the space around the text with hyphen marks. For example: --this-- or this ------.
FLYOVER="string"
specifies the text to show in a data tip for the cell.
string
is the text of the data tip.
Requirement:string must be enclosed in quotation marks.
Restriction:The FLYOVER= attribute is valid only in markup family destinations and the PDF destination.
FONT=font-definition
specifies a font definition to use in tables, cells, and graphs.
Restriction:The FONT= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
Tips:For a table, the FONT= attribute affects only the text that is specified with the PRETEXT=, POSTTEXT=, PREHTML=, and POSTHTML= attributes. To alter the font for the text that appears in the table, set the attribute for a cell.

If the system does not recognize the font specified, then it will refer to the system's default font. This attribute does not accept concatenated fonts. SAS Graph Styles can only specify one font.

FONTFAMILY="string-1<…, string-n>"
specifies the font to use in cells and graphs. If you supply multiple fonts, then the destination device uses the first one that is installed on the system.
string
is the name of the font.
Requirement:string must be enclosed in quotation marks.
Alias:FONT_FACE=
Restriction:The FONTFAMILY= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
Tips:For a table, the FONTFAMILY= attribute affects only the text that is specified with the PRETEXT=, POSTTEXT=, PREHTML=, and POSTHTML= attributes. To alter the font for the text that appears in the table, set the attribute for a cell.

You cannot be sure what fonts are available to someone who is viewing the output in a browser or printing it on a high-resolution printer. Most devices support the following fonts: Times, Courier, Arial, Helvetica.

FONTSIZE=dimension | size
specifies the size of the font for tables, cells, and graphs.
dimension
is a nonnegative number.
Alias:FONT_SIZE=
Restriction:If you specify a dimension, then specify a unit of measure. Without a unit of measure, the number becomes a relative size.
size
The value of size is relative to all other font sizes in the HTML document.
Range:1 to 7
Restriction:The FONTSIZE= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
Tip:For a table, the FONTSIZE= attribute affects only the text that is specified with the PRETEXT=, POSTTEXT=, PREHTML=, and POSTHTML= attributes. To alter the font for the text that appears in the table, set the attribute for a cell.
FONTSTYLE= ITALIC | ROMAN | SLANT
specifies the style of the font for tables, cells, and graphs. In many cases, italic and slant map to the same font.
Alias:FONT_STYLE=
Restriction:The FONTSTYLE= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
Tip:For a table, the FONTSTYLE= attribute affects only the text that is specified with the PRETEXT=, POSTTEXT=, PREHTML=, and POSTHTML= attributes. To alter the font for the text that appears in the table, set the attribute for a cell.
FONTWEIGHT= weight
specifies the font weight of tables, cells, and graphs. weight is any of the following:
  • MEDIUM
  • BOLD
  • DEMI_BOLD
  • EXTRA_BOLD
  • LIGHT
  • DEMI_LIGHT
  • EXTRA_LIGHT.
Alias:FONT_WEIGHT=
Restrictions:You cannot be sure what font weights are available to someone who is viewing the output in a browser or printing it on a high-resolution printer. Most devices support only MEDIUM and BOLD, and possibly LIGHT.

The FONTWEIGHT= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.

Tip:For a table, the FONTWEIGHT= attribute affects only the text that is specified with the PRETEXT=, POSTTEXT=, PREHTML=, and POSTHTML= attributes. To alter the font for the text that appears in the table, set the attribute for a cell.
FONTWIDTH=relative-width
specifies the font width of tables, cells, and graphs compared to the width of the usual design of the table, cell, or graph. relative-width is any of the following:
  • NORMAL
  • COMPRESSED
  • EXTRA_COMPRESSED
  • NARROW
  • WIDE
  • EXPANDED
Alias:FONT_WIDTH=
Restrictions:Few fonts honor these values.

The FONTWIDTH= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.

Tip:For a table, the FONTWIDTH= attribute affects only the text that is specified with the PRETEXT=, POSTTEXT=, PREHTML=, and POSTHTML= attributes. To alter the font for the text that appears in the table, set the attribute for a cell.
FRAME=frame-type
specifies the type of frame to use on a table. This table shows the possible values for frame-type and their meanings:
Frame-type Values
Value for frame-type
Frame Type
ABOVE
A border at the top
BELOW
A border at the bottom
BOX
Borders at the top, bottom, and both sides
HSIDES
Borders at the top and bottom
LHS
A border at the left side
RHS
A border at the right side
VOID
No borders
VSIDES
Borders at the left and right sides
Restriction:The FRAME= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
FRAMEBORDER=ON | OFF
specifies whether to put a border around the frame for an HTML file that uses frames.
ON
places a border around the frame for an HTML file that uses frames.
OFF
specifies not to put a border around the frame for an HTML file that uses frames.
Restriction:The FRAMEBORDER= attribute is valid only in markup family destinations.
FRAMEBORDERWIDTH=dimension
specifies the width of the border around the frames for an HTML file that uses frames.
Restriction:The FRAMEBORDERWIDTH= attribute is valid only in markup family destinations.
FRAMESPACING=dimension
specifies the width of the space between frames for HTML that uses frames.
Restriction:The FRAMESPACING= attribute is valid only in markup family destinations.
GRADIENT_DIRECTION= "YAXIS" | "XAXIS "
specifies the direction of the gradient.
"YAXIS"
specifies a vertical gradient.
"XAXIS"
specifies a horizontal gradient.
HEIGHT=dimension
specifies the height of a cell, graph, or graphics in an HTML document.
dimension
is a nonnegative number.
Aliases:CELLHEIGHT=

OUTPUTHEIGHT=

Restrictions:The HEIGHT= option does not apply to output generated as a result of GRSEG (graph segment) output.

The HEIGHT= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.

Interaction:The YPIXELS= option in the SAS/GRAPH GOPTIONS statement overrides the HEIGHT= attribute.
Tip:HTML automatically sets cell height appropriately. You will seldom need to specify this attribute in the HTML destination.
HREFTARGET="target"
specifies the window or frame in which to open the target of the link. target is one of these values:
_blank
opens the target in a new, blank window. The window has no name.
Restriction:Use lowercase letters to specify values for HREFTARGET.
_parent
opens the target in the window from which the current window was opened.
Restriction:Use lowercase letters to specify values for HREFTARGET.
_search
opens the target in the browser's search pane.
Restrictions:Only available in Internet Explorer 5.0 or later.

Use lowercase letters to specify values for HREFTARGET.

_self
opens the target in the current window.
Restriction:Use lowercase letters to specify values for HREFTARGET.
_top
opens the target in the topmost window.
Restriction:Use lowercase letters to specify values for HREFTARGET.
"name"
opens the target in the specified window or the frame.
Default:_self
Restrictions:The HREFTARGET= attribute is valid only in markup family destinations.

Use lowercase letters to specify values for HREFTARGET.

Requirement:target must be enclosed in quotation marks.
HTMLID="string"
specifies an ID for the table or cell. The ID is for use by a Java Script.
string
is the ID text.
Requirement:string must be enclosed in quotation marks.
Restriction:The HTMLID= attribute is valid only in markup family destinations.
HTMLSTYLE="string"
specifies individual attributes and values for a table or cell in an HTML document.
string
is the name of an attribute or value.
Requirement:string must be enclosed in quotation marks.
Restriction:The HTMLSTYLE= attribute is valid only in markup family destinations.
IMAGE="string"
specifies the image to appear in a graph. This image is positioned or tiled.
string
is the name of the image.
Requirement:string must be enclosed in quotation marks.
Restriction:The IMAGE= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
Interaction:The BACK= and IMAGESTYLE=TILE options in the SAS/GRAPH GOPTIONS statement override the IMAGE= attribute.
LINESTYLE=pattern-number
specifies the pattern of a line. Valid pattern numbers range from 1 to 46. Not all pattern numbers have names. You must specify the line pattern by its number. pattern-number can be one of the following:
Table of Line Patterns
Table of Line Patterns
LINETHICKNESS=dimension
specifies the thickness of a line.
LINKCOLOR=color
specifies the color for the links in an HTML document that have not yet been visited.
Restriction:The LINKCOLOR= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
LISTENTRYANCHOR=ON | OFF
in an HTML document, the LISTENTRYANCHOR= attribute specifies whether to make the entry in the table of contents a link to the body file.
ON
specifies to make this entry in the table of contents a link to the body file.
OFF
specifies not to make this entry in the table of contents a link to the body file.
Restriction:The LISTENTRYANCHOR= attribute is valid only in markup family destinations.
LISTSTYLETYPE=string
specifies the string to use for the bullets in the contents file. ODS uses bullets in the contents file.
string
is one of the following:
  • circle
  • decimal
  • disc
  • lower_alpha
  • lower_roman
  • none
  • square
  • upper_alpha
  • upper_roman
Alias:BULLET
Restriction:The LISTSTYLETYPE= attribute is valid only in markup family destinations.
MARGINBOTTOM= dimension
specifies the bottom margin for the HTML document.
Alias:BOTTOMMARGIN=
Restriction:The MARGINBOTTOM= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
MARGINLEFT=dimension
specifies the left margin for the HTML document.
Alias:LEFTMARGIN=
Restriction:The MARGINLEFT= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
MARGINRIGHT=dimension
specifies the right margin for the HTML document.
Alias:RIGHTMARGIN=
Restriction:The MARGINRIGHT= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
MARGINTOP= dimension
specifies the top margin for the HTML document.
Alias:TOPMARGIN=
Restriction:The MARGINTOP= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
MARKERSIZE=dimension
specifies the marker size (both width and height).
MARKERSYMBOL=marker-symbol
specifies a marker symbol. marker-symbol can be one of the following:
Table of Marker Symbols
Table of Marker Symbols
NEUTRALCOLOR=color
specifies the middle color in a three-color ramp.
NOBREAKSPACE= ON | OFF
specifies how to handle space characters in cells.
ON
does not let SAS break a line at a space character.
OFF
lets SAS break a line at a space character if appropriate.
Restriction:The NOBREAKSPACE= attribute is valid in markup family destinations, printer family destinations, and the RTF destination.
OUTPUTHEIGHT=dimension
specifies the height of a graph.
OUTPUTWIDTH=dimension
specifies the width of a graph.
OVERHANGFACTOR= nonnegative-number
specifies an upper limit for extending the width of the column in an HTML document.
Restriction:The OVERHANGFACTOR= attribute is valid only in markup family and printer family destinations.
Tips:Typically, an overhang factor between 1 and 2 works well.

The HTML that is generated by ODS tries to ensure that the text in a column wraps when it reaches the requested column width. When the overhang factor greater than 1, the text can extend beyond the specified width.

PADDING=dimension | dimension%
specifies the amount of white space between the content of the cell and the border.
Restriction:The PADDING= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
PADDINGBOTTOM=dimension | dimension%
specifies the amount of white space on the bottom of the content of the cell in the table.
Default:0
Restriction:The PADDINGBOTTOM= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
PADDINGLEFT=dimension | dimension%
specifies the amount of white space on the left side of the content of the cell in the table.
Default:0
Restriction:The PADDINGLEFT= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
PADDINGRIGHT=dimension | dimension%
specifies the amount of white space on the right side of the content of the cell in the table.
Default:0
Restriction:The PADDINGRIGHT= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
PADDINGTOP=dimension | dimension%
specifies the amount of white space on the top of the content of the cell in the table.
Default:0
Restriction:The PADDINGTOP= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
PAGEBREAKHTML= "string"
specifies HTML to place at page breaks in an HTML document.
string
is the HTML code used to place at page breaks.
Requirement:string must be enclosed in quotation marks.
Restriction:The PAGEBREAKHTML= attribute is valid only in markup family destinations.
POSTHTML= "string"
specifies the HTML code to place after the table or cell.
string
is the HTML code to place after a table or cell.
Requirement:string must be enclosed in quotation marks.
Restriction:The POSTHTML= attribute is valid only in markup family destinations.
POSTIMAGE= "string" | fileref
specifies an image to place before the table or cell.
string
names a GIF or JPEG file. Use a simple filename, a complete path, or a URL.
Requirement:string must be enclosed in quotation marks.
fileref
is a reference that has been assigned to an external file. Use the FILENAME statement to assign a fileref.
See:"Statements" in SAS Statements: Reference for information about the FILENAME statement.
Restriction:The POSTIMAGE= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
POSTTEXT= "string"
specifies text to place after the cell or table.
Restriction:The POSTTEXT= attribute is valid only for markup family destinations, printer family destinations, and the RTF destination.
Requirement:string must be enclosed in quotation marks.
PREHTML="string"
specifies the HTML code to place before the table or cell.
Restriction:The PREHTML= attribute is valid only for markup family destinations.
PREIMAGE= "string" | fileref
specifies an image to place before the table or cell.
string
names a GIF or JPEG file. Use a simple filename, a complete path, or a URL.
Restriction: When using the PREIMAGE= style attribute with the PRINTER destination, you must specify STARTPAGE=NO on the PRINTER family statement to display page numbers, times, dates, and titles. Without the STARTPAGE=NO option, preimages are treated like graphs and have no page numbers, times, dates, or titles displayed.
Requirement:Enclose string in quotation marks.
fileref
is a reference that has been assigned to an external file. Use the FILENAME statement to assign a fileref. (For information about the FILENAME statement, see "Statements" in SAS Statements: Reference.)
Restriction:The PREIMAGE= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
PRETEXT="string"
specifies text to place before the cell or table.
string
text that is placed before the cell or table.
Requirement:Enclose string in quotation marks.
Restriction:The PRETEXT= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
PROTECTSPECIALCHARS=ON | OFF | AUTO
specifies how less-than signs (<), greater-than signs (>), and ampersands (&) are interpreted in cells. In HTML and other markup languages, these characters indicate the beginning of a markup tag, the end of a markup tag, and the beginning of the name of a file or character entity.
ON
interprets special characters as the characters themselves. That is, when ON is in effect the characters are protected before they are passed to the HTML or other markup language destination so that the characters are not interpreted as part of the markup language. Using ON enables you to show markup language tags in the HTML document.
OFF
interprets special characters as markup language tags. That is, when OFF is in effect, the characters are passed to the HTML or other markup language destination without any protection so that the special characters are interpreted as part of the markup language.
AUTO
interprets any string that starts with a < and ends with a > as a markup language tag (ignoring spaces that immediately precede the <, spaces that immediately follow the >, and spaces at the beginning and end of the string). In any other string, AUTO protects the special characters from their markup language meaning.
Restriction:The PROTECTSPECIALCHARS= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
RULES=rule-type
specifies the types of rules to use in tables. This table shows the possible values for the RULES= attribute and their meanings:
RULES= Attribute Values
Value of RULES= Attribute
Locations of Rules
ALL
Between all rows and columns
COLS
Between all columns
GROUPS
Between the table header and the table and between the table and the table footer, if there is one
NONE
No rules anywhere
ROWS
Between all rows
Restriction:The RULES= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
STARTCOLOR= color
specifies the start fill color for a graph. It is used to create a gradient effect.
Note: You can have either a start and end gradient effect or no gradient effect. If you specify a TRANSPARENCY level and you only specify the STARTCOLOR, then the end color will be completely transparent gradationally to the specified start color.
Restriction:The STARTCOLOR= attribute is valid only for the HTML destination.
TAGATTR="string"
specifies text to insert into HTML.
string
is the text that is inserted into HTML tags.
Requirements:string must be enclosed in quotation marks.

string must be valid HTML for the context in which the style element is created.

Tip:Many style elements are created between <TD> and </TD> tags. To determine how a style element is created, look at the source for the output.
Restriction:The TAGATTR= attribute is valid only in markup family destinations.
TEXTALIGN=alignment
specifies justification in tables, cells, and graphs. In graphs, this option specifies the justification of the image specified with the IMAGE= statement. For example, this statement would produce a page number that is centered at the bottom of the page: style PageNo from TitleAndFooters / textalign=c verticalalign=b; This statement would produce a date in the body file that is left-justified at the top of the page: style BodyDate from Date / textalign=l;alignment can be one of the following:
CENTER
specifies center justification.
Alias:C
DEC
specifies aligning the values by the decimal point.
Alias:D
Restriction:Decimal alignment is supported for the printer family and RTF destinations only.
LEFT
specifies left justification.
Alias:L
RIGHT
specifies right justification.
Alias:R
Restriction:Not all contexts support RIGHT. If RIGHT is not supported, it is interpreted as CENTER.
Alias:JUST=
Restriction:The TEXTALIGN= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
Tips:For the printer family destinations and the MARKUP destination, use the style attribute TEXTALIGN= with the style attribute VERTICALALIGN= in the style element PAGENO to control the placement of page numbers.

For printer family destinations and the MARKUP destination, control the placement of dates by using the style attribute TEXTALIGN= with the style attribute VERTICALALIGN= in the BODYDATE or DATE. style element.

TEXTDECORATION=presentation–options
changes the visual presentation of the text. presentation–options can be one of the following:
BLINK
specifies that the text's visual presentation alternates rapidly between visible and invisible.
Restriction:TEXTDECORATION=BLINK is valid only in the HTML and RTF destinations.
LINE_THROUGH
specifies that a line is drawn through the text.
Restriction:TEXTDECORATION=LINE_THROUGH is valid only in the HTML destination, the printer family, the measured RTF destination, and the RTF destination.
OVERLINE
specifies that a line is drawn above the text.
Restriction:TEXTDECORATION=OVERLINE is valid only in the HTML destination and the printer family destinations.
UNDERLINE
specifies that a line is drawn below the text.
Restriction:TEXTDECORATION=UNDERLINE is valid only in the HTML destination, the printer family destinations, the measured RTF destination, and the RTF destination.
Tip:TEXTDECORATION= can be used with inline formatting and the ODS PDF statement to enhance PDF files.
TEXTINDENT=n
specifies the number of spaces that the first line of output will be indented.
n
specifies the number of spaces to indent the output.
Alias:INDENT=
Default:The default value for XML is 2. For all other ODS destinations, the default value is 0.
Restriction:The TEXTINDENT= attribute is valid only in the markup family destinations, the printer family destinations, and the RTF destination.
TICKDISPLAY= "INSIDE" | "OUTSIDE" | "ACROSS"
specifies the placement of all major and minor axis tick marks.
TEXTJUSTIFY= INTER_WORD | INTER_CHARACTER
specifies how to evenly distribute text.
INTER_WORD
specifies that the words will be evenly distributed across the page.
INTER_CHARACTER
specifies that all characters will be evenly distributed across a page.
Tip:Use the TEXTJUSTIFY= style attribute with the TEXTALIGN=J (alias JUST=) style attribute.
TRANSPARENCY=dimension
specifies a transparency level for graphs. The values are 0.0 (opaque) to 1.0 (transparent).
Restriction:The TRANSPARENCY= attribute is valid only in the HTML destination.
URL="uniform-resource-locator"
specifies a URL to link to from the current cell.
Restriction:The URL= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
Requirement:uniform-resource-locator must be enclosed in quotation marks.
VERTICALALIGN= BOTTOM | MIDDLE | TOP
specifies vertical justification for graphs and cells. In graphs, this option specifies the vertical justification of the image specified with IMAGE=. For example, this statement produces a page number that is centered at the bottom of the page: style PageNo from TitleAndFooters / textalign=c verticalalign=b; This statement produces a date in the body file that is left-justified at the top of the page: style BodyDate from Date / textalign=l verticalalign=t;
BOTTOM
specifies bottom justification.
Alias:B
MIDDLE
specifies center justification.
Alias:M
TOP
specifies top justification.
Alias:T
Alias:VJUST=
Restriction:The VERTICALALIGN= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
Tips:For printer and markup family destinations, use the style attribute VERTICALALIGN= with the style attribute TEXTALIGN= in the style element PAGENO to control the placement of page numbers.

For printer and markup family destinations, control the placement of dates by using the style attribute VERTICALALIGN= with the style attribute TEXTALIGN= in the BODYDATE or DATE style element.

VISITEDLINKCOLOR= color
specifies the color for links that have been visited in an HTML document.
Restriction:The VISITEDLINKCOLOR= attribute is valid only in markup family destinations.
WATERMARK= ON | OFF
specifies whether to make the image that is specified by BACKGROUNDIMAGE= into a watermark. A watermark appears in a fixed position as the window is scrolled.
ON
specifies to make the image that is specified by BACKGROUNDIMAGE= into a watermark.
OFF
specifies not to make the image that is specified by BACKGROUNDIMAGE= into a watermark.
Restriction:The WATERMARK= attribute is valid only in markup family destinations.
WHITESPACE=options
specifies how the browser handles multiple white space characters and line breaks. options can be one of the following:
NORMAL specifies that white spaces are compressed and text wraps normally.
NOWRAP specifies that white spaces are compressed and that text does not have line breaks.
PRE specifies that white spaces are left intact and that text does not have line breaks.
PRE_LINE specifies that white spaces are compressed, keeps line breaks that are in the text, and adds line breaks as needed.
PRE_WRAP specifies that white spaces are left intact and allows line breaking.
Default:NORMAL
WIDTH= dimension
specifies the width of a cell, table, line, or a graph.
When used with graphs, the WIDTH= option must be specified as a pixel or percentage value. If a unit of measure is not specified with the dimension, then the value will be in pixels. If a unit of measure other than pixels or percentage is specified with the dimension, then the HEIGHT=dimension is not applied to the graph.
dimension
is a nonnegative number.
Aliases:CELLWIDTH=

OUTPUTWIDTH=

Restrictions:The WIDTH= option does not apply to output generated as a result of GRSEG (graph segment) output.

The WIDTH= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.

Interaction:The XPIXELS= option in the SAS/GRAPH GOPTIONS statement overrides the WIDTH= attribute.
Tips:A column of cells will have the width of the widest cell in the column.

Use WIDTH=100% to make the table or graph as wide as the window that it is open in.