Previous Page | Next Page

TEMPLATE Procedure: Creating a Style Template (Definition)

Style Attributes and Their Values


Style attributes influence the characteristics of individual cells, tables, documents, graphs, and HTML frames.
See also: For information about using style attributes with ODS Statistical Graphics, see the chapter on controlling the appearance of your graphics in SAS/GRAPH: Graph Template Language User's Guide.
See also: For a table of style elements that can be used with style attributes, see ODS Style Elements.
See also: For more information about using style attributes and style elements together, see Understanding Styles, Style Elements, and Style Attributes.
See also: For information about style attribute values, see Style Attribute Values.


Style Attributes Overview

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.

Style attributes can be supplied by SAS or user-defined. Style attributes can be referenced with a style reference. See style-reference 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.

For a list of the values that style attributes can specify, see Style Attribute Values. For a list of style elements that you can specify style attributes in, see ODS Style Elements.


Style AttributesTables

Table of General Style Attributes
Attribute Task Destinations Affected Items
ABSTRACT=
Specify whether styles used in an HTML document are used in CSS or LaTex style files Markup family HTML documents
ACTIVELINKCOLOR=
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=
Specify how to handle leading spaces and line breaks in an HTML document Markup family, printer family, and RTF Cells and HTML documents
BACKGROUNDCOLOR=
Specify the color of the background of tables, cells, or graphs Markup family, printer family, and RTF Cells, tables, graphs
BACKGROUNDIMAGE=
Specify an image to use as the background Markup family, PCL, and PS Cells, tables, graphs
BACKGROUNDREPEAT=
Specify whether an image is repeated horizontally, vertically, both, or not repeated Markup family Individual tables or cells, graphs
BODYSCROLLBAR=
Specify whether to put a scroll bar in the frame that references the body file Markup family Individual frames in HTML output
BODYSIZE=
Specify the width of the frame that displays the body file in the HTML frame file Markup family Individual frames in HTML output
BORDERBOTTOMCOLOR=
Specify the color of the bottom border of the table Markup family, printer family, RTF, and Measured RTF Bottom border of a table
BORDERBOTTOMSTYLE=
Specify the line style of the bottom border of the selected cell Markup family, RTF, and Measured RTF Bottom border of a cell
BORDERBOTTOMWIDTH=
Specify the width of the bottom border of the table Markup family, printer family, RTF, and Measured RTF Bottom border of a table
BORDERCOLOR=
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=
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=
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=
Specify the color of the left border of a table Markup family, printer family, RTF, and Measured RTF Left border of the table
BORDERLEFTSTYLE=
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=
Specify the width of the left border of the table Markup family, printer family, RTF, and Measured RTF Left border of a table
BORDERRIGHTCOLOR=
Specify the color of the right border of the table Markup family, printer family, RTF, and Measured RTF Right border of a table
BORDERRIGHTSTYLE=
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=
Specify the width of the right border of the table Markup family, printer family, RTF, and Measured RTF Right border of the table
BORDERTOPCOLOR=
Specify the color of the top border of the table Markup family, printer family, RTF, and Measured RTF Top border of the table
BORDERTOPSTYLE=
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=
Specify the width of the top border of the table Markup family, printer family, RTF, and Measured RTF Top border of the table
BORDERWIDTH=
Specify the width of the border of the table Markup family, RTF, printer family Individual tables or cells
CELLPADDING=
Specify the amount of white space on each of the four sides of the text in a cell in the table Markup family, RTF, printer family Tables
CELLSPACING=
Specify the thickness of the spacing between cells in a table Markup family, RTF, printer family Tables
CLASS=
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=
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, and graphs
CONTENTPOSITION=
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=
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=
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=
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=
Specify the alternate colors for maps Markup family, RTF, printer family Graphs
DOCTYPE=
Specify the entire doctype declaration for the HTML document Markup family HTML documents
FILLRULEWIDTH=
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=
Specify the text to show in a data tip for the cell Markup family, PDF Individual cells
FONT=
Specify a font definition to use in tables, cells, and graphs Markup family, RTF, printer family Individual tables or cells, graphs
FONTFAMILY=
Specify the font to use in cells and graphs Markup family, RTF, printer family Individual tables or cells graphs
FONTSIZE=
Specify the size of the font for tables, cells, and graphs Markup family, RTF, printer family Individual tables or cells graphs
FONTSTYLE=
Specify the style of the font for tables, cells, and graphs Markup family, RTF, printer family Individual tables or cells graphs
FONTWEIGHT=
Specify the font weight of tables, cells, and graphs Markup family, RTF, printer family Individual tables or cells graphs
FONTWIDTH=
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=
Specify the type of frame to use on a table Markup family, RTF, printer family Tables
FRAMEBORDER=
Specify whether to put a border around the frame for an HTML file that uses frames Markup family Individual frames in HTML output
FRAMEBORDERWIDTH=
Specify the width of the border around the frames for an HTML file that uses frames Markup family Individual frames in HTML output
FRAMESPACING=
Specify the width of the space between frames for HTML that uses frames Markup family Individual frames in HTML output
HEIGHT=
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=
Specify the window or frame in which to open the target of the link Markup family Individual cells
HTMLID=
Specify an id for the table or cell Markup family Individual tables or cells
HTMLSTYLE=
Specify individual attributes and values for a table or cell in an HTML document Markup family Individual tables or cells
IMAGE=
Specify the image to appear in a graph Markup family, printer family, and RTF Graphs
LINKCOLOR=
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=
Specify whether to make the entry in the table of contents a link to the body file Markup family HTML documents
LISTENTRYDBLSPACE=
Specify whether to double space between entries in the table of contents Markup family HTML documents
LISTSTYLETYPE=
Specify the string to use for the bullets in the contents file Markup family Individual frames in HTML output
MARGINBOTTOM=
Specify the bottom margin for the HTML document Markup family, printer family, and RTF HTML documents
MARGINLEFT=
Specify the left margin for the HTML document Markup family, printer family, and RTF HTML documents
MARGINRIGHT=
Specify the right margin for the HTML document Markup family, printer family, and RTF HTML documents
MARGINTOP=
Specify the top margin for the HTML document Markup family, printer family, and RTF HTML documents
NOBREAKSPACE=
Specify how to handle space characters Markup family, printer family, and RTF Individual cells
OVERHANGFACTOR=
Specify an upper limit for extending the width of the column in an HTML document Markup family and printer family HTML documents
PAGEBREAKHTML=
Specify HTML to place at page breaks in an HTML document Markup family Tables, cells, and HTML documents
POSTHTML
Specify the HTML code to place after the table or cell Markup family Individual tables or cells
POSTIMAGE=
Specify an image to place before the table or cell Markup family Individual tables or cells
POSTTEXT=
Specify text to place after the cell or table Markup family, printer family, and RTF Individual tables or cells
PREHTML=
Specify the HTML code to place before the table or cell Markup family Individual tables or cells
PREIMAGE=
Specify an image to place before the table or cell Markup family, printer family, and RTF Individual tables or cells
PRETEXT=
Specify text to place before the cell or table Markup family, printer family, and RTF Individual tables or cells
PROTECTSPECIALCHARACTERS=
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=
Specify the types of rules to use in tables Markup family, printer family, and RTF Tables
STARTCOLOR=
Specify the start fill color for a graph HTML Graphs
TAGATTR=
Specify text to insert in the HTML Markup family Individual cells
TEXTALIGN=
Specify justification in tables, cells, and graphs printer family and RTF Individual tables or cells graphs
TEXTDECORATION=
Change the visual presentation of the text Markup family, RTF, and printer family Individual tables or cells


TEXTINDENT=
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=
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=
Specify a transparency level for graphs HTML Graphs
URL=
Specify a URL to link to Markup family, RTF, and printer family Individual cells
VERTICALALIGN=
Specify vertical justification Markup family, printer family, and RTF Individual cells and graphs
VISITEDLINKCOLOR=
Specify the color for links that have been visited in an HTML document Markup family HTML documents
WATERMARK=
Specify whether to make the image that is specified by BACKGROUNDIMAGE= into a "watermark " Markup family HTML documents
WIDTH=
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.  [cautionend]

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 devices 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 graphics include all SAS/GRAPH output where a compiled ODS template of type STATGRAPH is used to produce graphical ouput. 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 ouput 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=
Specify an image file path Device-based graphics Image that can be stretched, but not positioned in graph, chart, walls, floor
CAPSTYLE=
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=
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=
Specify characteristics of a box plot connect line Template-based graphics Box plot connect line
CONTRASTCOLOR=
Specify the color a line or marker Template-based graphics Color of line or marker
DISPLAYOPTS=
Specify display features for graphs Template-based graphics Displayed features of box plots, ellipses, histograms, bands
DROPSHADOW=
Specify whether the drop shadow color for text is displayed Device-based graphics Drop shadow color for text
ENDCOLOR=
Specify the final color used with a two or three color ramp All graphics environments Contours, gradient legends
FONT=
Specify a font definition to use in tables, cells, and graphs All graphics environments All text font attributes
FONTFAMILY=
Specify the font to use in cells and graphs All graphics environments Font family
FONTSIZE=
Specify the size of the font for tables, cells, and graphs All graphics environments Font size
FONTSTYLE=
Specify the style of the font for tables, cells, and graphs All graphics environments Font style
FONTWEIGHT=
Specify the font weight of tables, cells, and graphs All graphics environments Font weight
FRAMEBORDER=
Specify whether there is a graph wall border All graphics environments Graph wall border
GRADIENT_DIRECTION=
Specify the direction of the gradient Device-based graphics Graph background, legend background, charts, walls, floors
IMAGE=
Specify the path to an image Device-based graphics Image that can be positioned, but not stretched in graph, chart, walls, floor
LINESTYLE=
Specify the pattern of a line All graphics environments Borders, axis lines, grid, reference
LINETHICKNESS=
Specify the thickness of a line All graphics environments Thickness of line
MARKERSIZE=
Specify a marker size All graphics environments Marker size
MARKERSYMBOL=
Specify a marker symbol All graphics environments Marker used
NEUTRALCOLOR=
Specify the middle color of a 3-color ramp Template-based graphics Contours, gradient legends
OUTPUTHEIGHT=
Specify the height of a graph All graphics environments Height of graph
OUTPUTWIDTH=
Specify the width of a graph All graphics environments Width of graph
STARTCOLOR=
Specify the start fill color for a graph All graphics environments Contours, gradient legends
TEXTALIGN=
Specify the alignment of an image Device-based graphics Image horizontal positioning
TICKDISPLAY=
Specify the placement of all major and minor axis tick marks Template-based graphics Placement of all axis tick marks, major and minor
TRANSPARENCY=
Specify the transparency of backgrounds, fills, lines, and markers All graphics environments Backgrounds, fills, lines, markers
VERTICALALIGN=
Specify vertical justification Device-based graphics Image vertical positioning


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.
See: color
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=
Interaction: The CBACK= option in the SAS/GRAPH GOPTIONS statement overrides the BACKGROUNDCOLOR= attribute.
Restriction: The BACKGROUNDCOLOR= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
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 CELLSPACING=).
See: color
Featured in: Creating a Stand-Alone Style and Using the CLASS Statement
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 file name, 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.
See: string
BACKGROUNDREPEAT= REPEAT | REPEAT_X | REPEAT_Y | NO_REPEAT

specifies whether an image is repeated horizontally, vertically, both, or not repeated.

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 only in 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.

Tip: Typically, BODYSCROLLBAR= is set to AUTO.
Restriction: The BODYSCROLLBAR= attribute is valid only in markup family destinations.
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.

Tip: If dimension is a nonnegative number then the unit of measure is pixels.
Restriction: The BODYSIZE= attribute is valid only in markup family destinations.
See: dimension
See also: 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.
See also: color
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, 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, RTF destination, printer family destinations, and the Measured RTF destination.
See: dimension
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, RTF destination, printer family destinations, and the Measured RTF destination.
See also: color
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.

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.
Restriction: The BORDERCOLORDARK= attribute is valid only in markup family destinations and printer family destinations.
See: color
Featured in: Defining a Table and Graph Style
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.

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.
Restriction: The BORDERCOLORLIGHT= attribute is valid only in markup family destinations and printer family destinations.
See: color
Featured in: Defining a Table and Graph Style
BORDERLEFTCOLOR=color

specifies the color of the left border of the table.

Restriction: The BORDERLEFTCOLOR= attribute is valid only in markup family destinations, RTF destination, printer family destinations, and the Measured RTF destination.
See also: color
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, 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, RTF destination, printer family destinations, and the Measured RTF destination.
See: dimension
BORDERRIGHTCOLOR=color

specifies the color of the right border of the table.

Restriction: The BORDERRIGHTCOLOR= attribute is valid only in markup family destinations, RTF destination, printer family destinations, and the Measured RTF destination.
See also: color
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, 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.
See: dimension
BORDERTOPCOLOR=color

specifies the color of the top border of the table.

Restriction: The BORDERTOPCOLOR= attribute is valid only in markup family destinations, printer family destinations, RTF destination, and the Measured RTF destination.
Restriction: 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.
See also: color
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

Restriction: The BORDERTOPSTYLE= attribute is valid only in markup family destinations, the RTF destination, and the Measured RTF destination.
Restriction: 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.
See: dimension
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=) and FRAME=VOID (see the discussion about FRAME=).
Featured in: Creating a Stand-Alone Style and Using the CLASS Statement
See: dimension
CAPSTYLE= "SERIF" | "LINE" | "BRACKET" | "NONE"

specifies the shape of the line at the end of a box whisker.

CELLPADDING=dimension | dimension%

specifies the amount of white space on each of the four sides of the text 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.

Restriction: The CELLPADDING= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
See: dimension
Featured in: Using the CLASS Statement
CELLSPACING=dimension

specifies the thickness of the spacing between cells in a table.

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.
Restriction: The CELLSPACING= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
See: dimension
Featured in: Creating a Stand-Alone Style and Using the CLASS Statement
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.
See: string
COLOR=color

specifies the color of the foreground in tables, cells, or graphs, which is primarily the color of text.

Alias: FOREGROUND=
Interaction: The COLOR= attribute is overridden by the CBACK= option in the SAS/GRAPH GOPTIONS statement.
Restriction: The COLOR= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
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.
See: color
Featured in: Using the CLASS Statement
CONNECT= "MEDIAN" | "MEAN" | "Q1" | "Q3" | "MIN" | "MAX"

specifies the characteristics of a box plot connect line.

CONTENTPOSITION= LEFT | RIGHT | TOP | BOTTOM

specifies the position, within the frame file, of the frames that display the contents and the page files.

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 also: 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

Tip: Typically, CONTENTSCROLLBAR= is set to AUTO.
Restriction: The CONTENTSCROLLBAR= attribute is valid only in markup family destinations.
See also: 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.

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.
Restriction: The CONTENTSIZE= attribute is valid only in markup family destinations.
See: dimension
See also: BODYSIZE=
See also: 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".
See: string
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.
See: color
DISPLAYOPTS= "CAPS" | "CONNECT" | "FILL" | "MEAN" | "MEDIAN" | "NOTCHES" | "OUTLIERS" | "OUTLINE"

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"
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.
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.
See: string
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.

See: color
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.

Tip: If no text is specified, then FILLRULEWIDTH= fills the space around the text with dash marks. For example: --this-- or this ------.
Restriction: The FILLRULEWIDTH= attribute is valid only in printer family destinations.
See: dimension
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.
See: string
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.

Tip: 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.
Tip: 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.
Restriction: The FONT= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
Featured in: Using the CLASS Statement
See: font-definition
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.
See: string
Alias: FONT_FACE=
Restriction: The FONTFAMILY= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
Tip: 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.
Tip: 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.

Featured in: Creating a Stand-Alone Style
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.
See: dimension
size

The value of size is relative to all other font sizes in the HTML document.

Range: 1 to 7
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.
Restriction: The FONTSIZE= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
Featured in: Creating a Stand-Alone Style
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.
Featured in: Creating a Stand-Alone Style and Using the CLASS Statement
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=
Restriction: 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.
Restriction: 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.
Featured in: Creating a Stand-Alone Style
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=
Restriction: Few fonts honor these values.
Restriction: 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.
Featured in: Creating a Stand-Alone Style
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.
Featured in: Using the CLASS Statement
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.
See: dimension
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.
See: dimension
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.

See: dimension
Alias: CELLHEIGHT=
Alias: OUTPUTHEIGHT=
Restriction: The HEIGHT= option does not apply to output generated as a result of GRSEG (graph segment) output.
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.
Restriction: The HEIGHT= attribute is valid only in markup family destinations, printer family destinations, and the RTF 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.

_PARENT

opens the target in the window from which the current window was opened.

_SEARCH

opens the target in the browser's search pane.

Restriction: Only available in Internet Explorer 5.0 or later.
_SELF

opens the target in the current window.

_TOP

opens the target in the topmost window.

"name"

opens the target in the specified window or the frame.

Default: _SELF
Restriction: The HREFTARGET= attribute is valid only in markup family destinations.
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.
See: string
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.
See: string
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.
See: string
Interaction: The BACK= and IMAGESTYLE=TILE options in the SAS/GRAPH GOPTIONS statement override the IMAGE= attribute.
Restriction: The IMAGE= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
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 it's 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.

See: dimension
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.
See: color
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.
LISTENTRYDBLSPACE=ON | OFF

in an HTML document, the LISTENTRYDBLSPACE= attribute specifies whether to double space between entries in the table of contents.

ON

specifies to double space between entries in the table of contents.

OFF

specifies not to double space between entries in the table of contents.

Restriction: The LISTENTRYDBLSPACE= 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
See: string
Restriction: The LISTSTYLETYPE= attribute is valid only in markup family destinations.
MARKERSIZE=dimension

specifies the marker size (both width and height).

See: dimension
MARKERSYMBOL=marker-symbol

specifies a marker symbol. marker-symbol can be one of the following:

Table of Marker Symbols

[Table of Marker Symbols]

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.
See: dimension
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.
See: dimension
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.
See: dimension
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.
See: dimension
NEUTRALCOLOR=color

specifies the middle color in a 3-color ramp.

See: color
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.

See: dimension
OUTPUTWIDTH=dimension

specifies the width of a graph.

See: dimension
OVERHANGFACTOR= nonnegative-number

specifies an upper limit for extending the width of the column in an HTML document.

Tip: Typically, an overhang factor between 1 and 2 works well.
Tip: 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.
Restriction: The OVERHANGFACTOR= attribute is valid only in markup family and printer family destinations.
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.
See: string
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.
See: string
Restriction: The POSTHTML= attribute is valid only in markup family destinations.
Featured in: Using the CLASS Statement
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.
See: string
fileref

is a reference that has been assigned to an external file. Use the FILENAME statement to assign a fileref. (

See: "Statements" in SAS Language Reference: Dictionary 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.

Requirement: string must be enclosed in quotation marks.
Restriction: The POSTTEXT= attribute is valid only for markup family destinations, printer family destinations, and the RTF destination.
See: string
PREHTML="string"

specifies the HTML code to place before the table or cell.

Restriction: The PREHTML= attribute is valid only for markup family destinations.
See: string
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.

Requirement: Enclose string in quotation marks.
See: string
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 Language Reference: Dictionary.)

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.
See: string
Restriction: The PRETEXT= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
PROTECTSPECIALCHARACTERS=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 PROTECTSPECIALCHARACTERS= 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.
Featured in: Defining a Table and Graph Style
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.  [cautionend]

Restriction: The STARTCOLOR= attribute is valid only for the HTML destination.
See: color
TAGATTR="string"

specifies text to insert into HTML.

string

is the text that is inserted into HTML tags.

Requirement: string must be enclosed in quotation marks.
Requirement: 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.
See: string
Restriction: The TAGATTR= attribute is valid only in markup family destinations.
TEXTALIGN= CENTER | DEC | LEFT | RIGHT

specifies justification in tables, cells, and graphs. In graphs, this option specifies the justification of the image specified with the IMAGE= statement.

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.
Tip: 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 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;
Tip: 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 any of these style elements:

BODYDATE

DATE.

For example, 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 verticalalign=t;
TEXTDECORATION= BLINK | LINE_THROUGH | OVERLINE | UNDERLINE

changes the visual presentation of the text.

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 destinations.
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.

Default: The default value for XML is 2. For all other ODS destinations, the default value is 0.
Alias: INDENT=
Restriction: The TEXTINDENT= attribute is valid only in the markup family destinations, the printer family destinations, and the RTF destination.
n

specifies the number of spaces to indent the output.

TICKDISPLAY= "INSIDE" | "OUTSIDE" | "ACROSS"

specifies the placement of all major and minor axix 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.
See: dimension
URL="uniform-resource-locator"

specifies a URL to link to from the current cell.

Requirement: uniform-resource-locator must be enclosed in quotation marks.
Restriction: The URL= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.
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=.

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.
Tip: 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 example, this statement produces a page number that is centered at the bottom of the page:

style PageNo from TitleAndFooters / textalign=c verticalalign=b;
Tip: For printer and markup family destinations, control the placement of dates by using the style attribute VERTICALALIGN= with the style attribute TEXTALIGN= in any of these style elements:

BODYDATE

DATE

.

For example, 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;
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.
See: color
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.
See also: BACKGROUNDIMAGE=
WIDTH= dimension

specifies the width of a cell, table, line, or a graph.

dimension

is a nonnegative number.

See: dimension
Alias: CELLWIDTH=
Alias: OUTPUTWIDTH=
Restriction: The HEIGHT= option does not apply to output generated as a result of GRSEG (graph segment) output.
Interaction: The XPIXELS= option in the SAS/GRAPH GOPTIONS statement overrides the WIDTH= attribute.
Tip: When used with graphs, the HEIGHT=dimension 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.
Tip: A column of cells will have the width of the widest cell in the column.
Tip: Use WIDTH=100% to make the table or graph as wide as the window that it is open in.
Restriction: The WIDTH= attribute is valid only in markup family destinations, printer family destinations, and the RTF destination.

Style Attribute Values

Values for style attributes are one of the following:

color

is a string that identifies a color. A color is defined in the following ways:

  • most of the color names that are supported by SAS/GRAPH. These names include the following:

    • a predefined SAS color (for example, blue or VIYG)

    • a red/green/blue (RGB) value (for example, CX0023FF)

    • a hue/light/saturation (HLS) value (for example, H14E162D)

    • a gray-scale value (for example, GRAYBB).

  • an RGB value with a leading pound sign (#) rather than CX (for example, #0023FF).

  • one of the colors that exists in the SAS session when the style is used:

    • DMSBLUE

    • DMSRED

    • DMSPINK

    • DMSGREEN

    • DMSCYAN

    • DMSYELLOW

    • DMSWHITE

    • DMSORANGE

    • DMSBLACK

    • DMSMAGENTA

    • DMSGRAY

    • DMSBROWN

    • SYSBACK

    • SYSSECB

    • SYSFORE

    Note:   Use these colors only when running SAS in the windowing environment.  [cautionend]

  • an English description of an HLS. Such descriptions use a combination of words to describe the lightness, the saturation, and the hue (in that order). Use the Color Naming System to form a color in the following ways:

    • combining a chromatic hue with a lightness, a saturation, or both

    • combining the achromatic hue gray with a lightness

    • combining the achromatic hue black or white without qualifiers

    Use the words in the following table:
    Hue/Light/Saturation (HLS) Values
    Lightness Saturation Chromatic Hue Achromatic Hue


    Blue Black *
    Very dark Grayish Purple
    Dark Moderate Red
    Medium Strong Orange | brown Gray **
    Light Vivid Yellow
    Very light
    Green



    White *
    * Black and white cannot be combined with a lightness or a saturation value.

    ** Gray cannot be combined with a saturation value.

    Combine these words to form a wide variety of colors. Here are examples:

    • light vivid green

    • dark vivid orange

    • light yellow

Note:   The Output Delivery System first tries to match a color with a SAS/GRAPH color. Thus, although brown and orange are interchangeable in the table, if you use them as unmodified hues, then they are different. The reason for this is that ODS interprets them as SAS colors, which are mapped to different colors.  [cautionend]

You can also specify hues that are intermediate between two neighboring colors. To do so, combine one of these adjectives with one of its neighboring colors:

  • reddish

  • orangish

  • brownish

  • yellowish

  • greenish

  • bluish

  • purplish

For example, you can use the following as hues:

  • bluish purple

  • reddish orange

  • yellowish green

See also: RBG Color Codes, HLS Color Codes, and Gray-Scale Color codes in SAS/GRAPH: Reference for information about SAS/GRAPH colors.
dimension

is a whole number, a percentage, or a nonnegative number followed by one of these units of measure:

Units of Measure for Dimension
cm Centimeters
em Standard typesetting measurement unit for width
ex Standard typesetting measurement unit for height
in Inches
mm Millimeters
pt A printer's point

Default: For the PRINTER destination, units of 1/150 of an inch
font-definition

is the name of a font, the font size, and font keywords. A font definition has this general format:

("font-face-1 <... , font-face-n>", font-size, keyword-list)
"font-face"

specifies the name of the font.

ODS styles can now use new TrueType fonts. All Universal Printers and many SAS/GRAPH devices use the FreeType library to render TrueType fonts for output in all of the operating environments that SAS software supports. In addition, by default, many SAS/GRAPH device drivers and all Universal Printers generate output using ODS styles, and these ODS styles use TrueType fonts. In addition to SAS Monospace and SAS Monospace Bold, 21 new TrueType fonts are made available when you install SAS:

  • five Latin fonts compatible with Microsoft

  • eight multilingual Unicode fonts

  • eight monolingual Asian fonts

For more information about the TrueType fonts, see the section "Printing with SAS" in SAS Language Reference: Concepts.

Restriction: You must enclose multiple font-face in quotation marks. If you specify only one font and if its name does not include a space character, then omit the quotation marks.
Tip: If you specify more than one font, then the destination device uses the first one that is installed on the system.
font-size

specifies the size of the font. font-size is a dimension or a number without units of measure. If you specify a dimension, then specify a unit of measure. Without a unit of measure the number becomes a size that is relative to all other font sizes in the HTML document. For more information, see dimension.

keyword-list

specifies the font weight, font style, and font width. Include one value for each, in any order. This table shows the keywords to use:

Font Keywords
Keywords for Font Weight Keywords for Font Style Keywords for Font Width
MEDIUM ITALIC NORMAL*
BOLD ROMAN COMPRESSED*
DEMI_BOLD* SLANT EXTRA_COMPRESSED*
EXTRA_BOLD*
NARROW*
LIGHT
WIDE*
DEMI_LIGHT*
EXPANDED*
EXTRA_LIGHT*

* Few fonts honor these values.

Featured in: Using User-Defined Attributes
format

is a SAS format or a user-defined format.

integer | integer-list | integer-column-list

specifies a column variable that contains integer values, or a dynamic variable that refers to such a column variable.

integer

specifies a single integer.

integer-list

specifies a sequence of integer values, or a column variable that contains integer values, or a dynamic variable that refers to such a column variable or to a string.

integer-column-list

specifies a sequence of column variables, or a column variable that contains column variables, or a dynamic variable that refers to such a column variable, or a dynamic variable that refers to a string containing a list of column variables. Values within the columns must be integers.

style-reference

is a reference to an attribute that is defined in the current style or in the parent style (or beyond). The value used is the name of the style element followed by the name of an attribute, in parentheses, within that element. Style references have the following form:

style-attribute=target-style-element("target-style-attribute")
style-attribute

specifies the name of the style attribute.

target-style-element

specifies the name of the style element that contains the style attribute that you want to reference.

target-style-attribute

specifies the style attribute with the value that you want to use.

Requirement: You must enclose target-style-attribute in quotation marks if it is a user-supplied style attribute.
Featured in: Using User-Defined Attributes
See also: Understanding Style References
"string"

is a quoted character string.

user-defined-format

specifies a format created with the FORMAT procedure.

Restriction user-defined-format can only be specified for data cells.

Previous Page | Next Page | Top of Page