| TEMPLATE Procedure: Creating a Style Definition |
| Style Definition Attributes |
Style attributes are used with the DEFINE STYLE statement. The default value for an attribute depends on the style definition that is in use. The implementation of an attribute depends on the ODS destination that formats the output. In addition, 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 definition, see Viewing the Contents of a Style Definition. For a list of the values that style attributes can specify, see Bark Style Definition Attribute Values.
| Task | Attribute | Valid destinations ... | |
|---|---|---|---|
| Influence the characteristics of individual cells |
|
|
|
|
|
Specify how to handle leading spaces and line breaks. |
ASIS= |
HTML, RTF,PDF, PCL, and PS |
|
|
Specify the height of the cell. |
CELLHEIGHT= |
HTML, RTF, PDF, PCL, and PS |
|
|
Specify the width of the cell. |
CELLWIDTH= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the text to show in a tool tip for the cell. |
FLYOVER= |
HTML, PDF |
|
|
Specify the window or frame in which to open the target of the link. |
HREFTARGET= |
HTML |
|
|
Specify how to handle space characters. |
NOBREAKSPACE= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify text to insert in the HTML code. |
TAGATTR= |
HTML |
|
|
Specify a URL to link to. |
URL= |
HTML, RTF, and PDF |
|
|
Specify vertical justification. |
VJUST= |
HTML, PCL, PDF, PS, and RTF |
| Influence the characteristics of individual tables or cells |
|
|
|
|
|
Specify the color of the background. |
BACKGROUND= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify an image to use as the background. |
BACKGROUNDIMAGE= |
HTML, PCL and PS |
|
|
Specify the color of the border if the border is just one color. |
BORDERCOLOR |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the darker color to use in a border that uses two colors to create a three-dimensional effect. |
BORDERCOLORDARK |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the lighter color to use in a border that uses two colors to create a three-dimensional effect. |
BORDERCOLORLIGHT |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the width of the border of the table. |
BORDERWIDTH |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify a font definition. |
FONT= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the font to use. |
FONT_FACE= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the size of the font. |
FONT_SIZE= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the style of the font. |
FONT_STYLE= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the font weight. |
FONT_WEIGHT= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the font width compared to the width of the usual design. |
FONT_WIDTH= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the color of the foreground, which is primarily the color of the text. |
FOREGROUND= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the name of the stylesheet class to use for the table or cell. |
HTMLCLASS= |
HTML |
|
|
Specify an ID for the table or cell. |
HTMLID= |
HTML |
|
|
Specify individual attributes and values for the table or cell. |
HTMLSTYLE= |
HTML |
|
|
Specify justification. |
JUST= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the HTML code to place after the HTML table or cell. |
POSTHTML= |
HTML |
|
|
Specify an image to place after the table or cell. |
POSTIMAGE= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify text to place after the cell or table. |
POSTTEXT= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the HTML code to place before the HTML table or cell. |
PREHTML= |
HTML |
|
|
Specify an image to place before the table or cell. |
PREIMAGE= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify text to place before the cell or table. |
PRETEXT= |
HTML, PCL, PDF, PS, and RTF |
|
|
Determine how less-than signs (<), greater-than signs (>), and ampersands (&) are interpreted. |
PROTECTSPECIALCHARACTERS= |
HTML, MARKUP family, PRINTER family, and RTF |
| Influence the characteristics of tables |
|
|
|
|
|
Specify the amount of white space on each of the four sides of the text in a cell. |
CELLPADDING= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the thickness of the spacing between cells. |
CELLSPACING= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the type of frame to use on an HTML table. |
FRAME= |
HTML, PRINTER family, and RTF |
|
|
Specify the width of the table. |
OUTPUTWIDTH= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the types of rules to use in a table. |
RULES= |
HTML, PCL, PDF, PS, and RTF |
| Influence the characteristics of individual frames in HTML output |
|
|
|
|
|
Specify whether or not to put a scroll bar in the frame that references the body file. |
BODYSCROLLBAR= |
HTML |
|
|
Specify the width of the frame that displays the body file in the HTML frame file. |
BODYSIZE= |
HTML |
|
|
Specify the string to use for bullets in the contents file. |
BULLETS= |
HTML |
|
|
Specify the position of the frames in the frame file that displays the contents and the page files. |
CONTENTPOSITION= |
HTML |
|
|
Specify whether or not to put a scroll bar in the frames in the frame file that displays the contents and the page files. |
CONTENTSCROLLBAR= |
HTML |
|
|
Specify the width of the frames in the frame file that display the contents and the page files. |
CONTENTSIZE= |
HTML |
|
|
Specify whether or not to put a border around the HTML frame for an HTML file. |
FRAMEBORDER= |
HTML |
|
|
Specify the width of the border around the HTML frames for an HTML file. |
FRAMEBORDERWIDTH= |
HTML |
|
|
Specify the width of the space between HTML frames for HTML files. |
FRAMESPACING= |
HTML |
| Influence the characteristics of the document |
|
|
|
|
|
Specify whether or not graph styles are used in CSS or LaTex style files. |
ABSTRACT= |
HTML and MARKUP |
|
|
Specify the color for links that are active. |
ACTIVELINKCOLOR= |
HTML and RTF |
|
|
Specify the bottom margin for the document. |
BOTTOMMARGIN= |
HTML, PCL, PDF, PS, and RTF |
|
|
Cause a rule of the specified width to be placed into the space around the text (or entire cell if there is no text) where white space would otherwise appear. |
FILLRULEWIDTH= |
PS, PDF, PCL |
|
|
Provide the value of the content type for pages that you send directly to a web server rather than to a file. |
HTMLCONTENTTYPE= |
HTML |
|
|
Specify the entire doctype declaration for the HTML document, including the opening "<!DOCTYPE" and the closing ">". |
HTMLDOCTYPE= |
HTML |
|
|
Set a numeric value to use as the indention depth. |
INDENT= |
MARKUP, RTF and PRINTER Family |
|
|
Specify the left margin for the document. |
LEFTMARGIN= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the color for links that have not yet been visited. |
LINKCOLOR= |
HTML, RTF, and PDF |
|
|
Specify whether or not to make this entry in the table of contents a link to the body file. |
LISTENTRYANCHOR= |
HTML |
|
|
Specify whether or not to double space between entries in the table of contents. |
LISTENTRYDBLSPACE= |
HTML |
|
|
Specify the height for graphics in the document. |
OUTPUTHEIGHT= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify an upper limit for extending the width of the column. |
OVERHANGFACTOR= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify HTML to place at page breaks. |
PAGEBREAKHTML= |
HTML |
|
|
Specify the right margin for the document. |
RIGHTMARGIN= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the top margin for the document. |
TOPMARGIN= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the color for links the visited links. |
VISITEDLINKCOLOR= |
HTML and RTF |
|
|
Specify whether or not to make the image that is specified by BACKGROUNDIMAGE= into a "watermark." A watermark appears in a fixed position as the window is scrolled. |
WATERMARK= |
HTML |
| Influence the characteristics of graphs |
|
|
|
|
|
Specify the background color of the graph. 1 |
BACKGROUND= |
HTML, RTF, PRINTER family |
|
|
Specify the image to appear in the background. This image will be stretched. 1 |
BACKGROUNDIMAGE= |
HTML, PCL, and PS |
|
|
Specify the alternate colors for maps. The alternate colors are applied to the blocks on region areas in block maps. |
CONTRASTCOLOR= |
HTML, RTF, PRINTER family |
|
|
Specify whether to use a drop shadow effect for text in a graph. |
DROPSHADOW= |
HTML, RTF, PRINTER family |
|
|
Specify the end color for a gradient effect in a graph. |
ENDCOLOR= |
HTML, RTF, PRINTER family |
|
|
Specify a font definition. 1 |
FONT= |
HTML, RTF, PRINTER family |
|
|
Specify the font to use. 1 |
FONT_FACE= |
HTML, RTF, PRINTER family |
|
|
Specify the size of the font to use. 1 |
FONT_SIZE= |
HTML, RTF, PRINTER family |
|
|
Specify the style of the font.1 |
FONT_STYLE= |
HTML, RTF, PRINTER family |
|
|
Specify the font weight.1 |
FONT_WEIGHT= |
HTML, RTF, PRINTER family |
|
|
Specify the font width compared to the width of the usual design.1 |
FONT_WIDTH= |
HTML, RTF, PRINTER family |
|
|
Specify the color of text or data items.1 |
FOREGROUND= |
HTML, RTF, PRINTER family |
|
|
Specify the direction of the gradient effect in either the X or Y axis direction to influence the graph background, legend background, charts, walls, floors, etc. |
GRADIENT_DIRECTION= |
HTML, RTF, PRINTER family |
|
|
Specify the image to appear in the background. This image can be positioned or tiled. |
IMAGE= |
HTML, RTF, PRINTER family |
|
|
Specify the image's horizontal positioning. 1 |
JUST= |
HTML, PCL, PDF, PS, and RTF |
|
|
Specify the line type to use in a graph. You can use SAS/GRAPH line types 1-46. |
LINESTYLE= |
HTML, RTF, PRINTER family |
|
|
Specify the thickness (width) of a line that is part of a graph. |
LINETHICKNESS= |
HTML, RTF, PRINTER family |
|
|
Specify the size of the symbol used to represent data values. |
MARKERSIZE= |
HTML, RTF, PRINTER family |
|
|
Specify the symbol used to represent data values. |
MARKERSYMBOL= |
HTML, RTF, PRINTER family |
|
|
Specify the height of the graph.1 |
OUTPUTHEIGHT= |
HTML, RTF, PRINTER family |
|
|
Specify the width of the graph or line thickness. 1 |
OUTPUTWIDTH= |
HTML, RTF, PRINTER family |
|
|
Specify the start color for a gradient effect in a graph. |
STARTCOLOR= |
HTML, RTF, PRINTER family |
|
|
Specify the level of transparency for a graph. |
TRANSPARENCY= |
HTML, RTF, PRINTER family |
|
|
Specify the image's vertical positioning.1 |
VJUST |
HTML, RTF, PRINTER family |
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]](../common.hlp/images/cautend.gif)
determines whether or not styles are used in CSS or LaTex style files.
specifies that styles are used in CSS or LaTex style files.
specifies that styles are not used in CSS or LaTex style files.
| Applies to: | document |
| ODS Destination: | HTML, MARKUP, and LaTex |
specifies the color that a link changes to after you click on it, but before the browser opens that file.
| Applies to: | document |
| ODS Destination: | HTML |
| See: | color |
specifies how to handle leading spaces and line breaks.
prints text with leading spaces and line breaks, in the same manner as the listing output.
trims leading spaces and ignores line breaks.
| Default: | OFF |
| Applies to: | document |
| ODS Destinations: | HTML, RTF, PS, PCL, and PDF |
specifies the color of the background.
| 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=). |
| Applies to: | tables or cells and graphs |
| ODS Destinations: | HTML, PCL, PDF, PS, and RTF |
| Overridden by: | CBACK= option in the SAS/GRAPH GOPTIONS statement |
| Featured in: | Creating a Stand-Alone Style Definition and Modifying the Default Style Definition for the HTML and Markup Languages |
| See: | color |
specifies an image 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. You can 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.
| Applies to: | tables or cells and graphs |
| ODS Destinations: | HTML, PCL, and PS |
| Overridden by: | IBACK= and IMAGESTYLE=FIT options in the SAS/GRAPH GOPTIONS statement |
| See: | string |
specifies whether or not to put a scroll bar in the frame that references the body file.
places a scroll bar in the frame that references the body file.
specifies not to put a scroll bar in the frame that references the body file.
places a scroll bar in the frame that references the body file only if needed.
| Tip: | Typically, BODYSCROLLBAR is set to AUTO. |
| Applies to: | frame |
| ODS Destinations: | HTML |
specifies the width of the frame that displays the body file in the HTML frame file. (For information about the HTML files that ODS creates, see HTML Links and References Produced by the HTML Destination.)
is a nonnegative number. The unit of measure is pixels.
| See: | dimension |
specifies the width of the frame 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.
| Applies to: | frame |
| ODS Destinations: | HTML |
specifies the color of the border if the border is just one color.
| Applies to: | tables or cells |
| ODS Destinations: | HTML, RTF, PRINTER family |
| See: | color |
specifies the darker color to use in a border that uses two colors to create a three-dimensional effect.
| Interaction: | If you create HTML4 output, then the BORDERCOLORDARK style attribute is ignored because it is not part of the HTML4 standard. If you want a color border, then use the BORDERCOLOR= style attribute. |
| Applies to: | tables or cells |
| ODS Destinations: | HTML, RTF, PRINTER family |
| Featured in: | Defining a Table and Graph Style |
| See also: | color |
specifies the lighter color to use in a border that uses two colors to create a three-dimensional effect.
| Interaction: | If you create HTML4 output, then the BORDERCOLORLIGHT style attribute is ignored because it is not part of the HTML4 standard. If you want a color border, then use the BORDERCOLOR= style attribute. |
| Applies to: | tables or cells |
| ODS Destinations: | HTML, RTF, PRINTER family |
| Featured in: | Defining a Table and Graph Style |
| See: | color |
specifies the width of the border of the table.
| Applies to: | tables |
| ODS Destinations: | HTML, RTF, PRINTER family |
| 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 Definition and Modifying the Default Style Definition for the HTML and Markup Languages |
| See: | dimension |
specifies the bottom margin for the document.
| Applies to: | document |
| ODS Destinations: | HTML, RTF, PRINTER family |
| See: | dimension |
specifies the string to use for bullets in the contents file. ODS uses bullets in the contents file. string can be one of the following:
circle
decimal
disc
lower-alpha
lower-roman
none
square
upper-alpha
upper-roman.
| Applies to: | contents |
| ODS Destinations: | HTML |
| See: | string |
specifies the height of the cell. If you specify a percent, it represents a percentage of the height of the table. A row of cells will have the height of the highest cell in the row.
is a nonnegative number, optionally followed by one of the following units of measure.
| See: | dimension |
specifies the height of the cell as a percentage of the height of the table.
| Alias: | OUTPUTHEIGHT= |
| Tip: | HTML automatically sets cell height appropriately. You should seldom need to specify this attribute in the HTML destination. |
| Applies to: | cells |
| ODS Destinations: | HTML, RTF, PDF, PCL, and PS |
specifies the amount of white space on each of the four sides of the text in a cell.
is a nonnegative number, optionally followed by one of the following units of measure.
| See: | dimension |
specifies the amount of white space on each of the four sides of the text in a cell as a percentage of the table.
| Applies to: | tables |
| ODS Destinations: | HTML, RTF, PRINTER family |
| Featured in: | Modifying the Default Style Definition for the HTML and Markup Languages |
specifies the thickness of the spacing between cells.
| Applies to: | tables |
| 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. |
| Featured in: | Creating a Stand-Alone Style Definition and Modifying the Default Style Definition for the HTML and Markup Languages |
| See: | dimension |
specifies the width of the cell. If you specify a percent, it represents a percentage of the width of the table. A column of cells will have the width of the widest cell in the column.
is a nonnegative number, optionally followed by one of the following units of measure.
| See: | dimension |
specifies the width of the cell as a percentage of the width of the table.
| Alias: | OUTPUTWIDTH= |
| Applies to: | cells |
| ODS Destinations: | HTML, RTF, PRINTER family |
specifies the position, within the frame file, of the frames 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.)
places the frames on the left.
| Alias: | L |
places the frames on the right.
| Alias: | R |
places the frames at the top.
| Alias: | T |
places the frames at the bottom.
| Alias: | B |
| Applies to: | frame |
| ODS Destinations: | HTML |
specifies whether or not 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.)
places a scroll bar in the frames in the frame file that display the contents and the page files.
specifies not to put a scroll bar in the frames in the frame file that display the contents and the page files.
specifies that the browser provides a scroll bar for the frame window when necessary.
| Tip: | Typically, CONTENTSCROLLBAR= is set to AUTO. |
| Applies to: | frame |
| ODS Destinations: | HTML |
specifies the width of 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
is a nonnegative number. The unit of measure is pixels.
| See: | dimension |
specifies the width of the frames as a percentage of the entire display.
| Requirement: | number % must be a positive number between 0 and 100. |
specifies to use whatever space is left after displaying the body file as specified by the BODYSIZE= attribute.
| See also: | BODYSIZE= |
| Applies to: | frame |
| ODS Destinations: | HTML |
specifies the alternate colors for maps. The alternate colors are applied to the blocks on region areas in block maps.
| Applies to: | graphs |
| ODS Destinations: | HTML |
| See: | color |
determines whether drop shadow effect is used with text.
specifies that a drop shadow effect is used with text.
specifies that a drop shadow effect is not used with text.
| Applies to: | graphs |
| ODS Destinations: | HTML |
indicates the end 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 ENDCOLOR,
then the start color will be completely transparent gradationally to the end
color. ![[cautionend]](../common.hlp/images/cautend.gif)
| Applies to: | graphs |
| ODS Destinations: | HTML |
| See: | color |
causes a rule of the specified width to be placed into the space around the text (or entire cell if there is no text) 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 ------. |
| Applies to: | tables |
| ODS Destinations: | PDF, PS, and PCL |
| See: | dimension |
specifies the text to show in a tool tip for the cell.
| Applies to: | cells |
| ODS Destinations: | HTML and PDF |
| See: | string |
specifies a font definition to use.
| Tip: | When you specify this attribute for a table, it 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, you must set the attribute for a cell. |
| Tip: | If the system does not recognize the font specified, then it will refer to your system's default font. This attribute does not accept concatenated fonts. SAS Graph Styles can only specify one font. |
| Applies to: | tables, cells, and graphs |
| ODS Destinations: | HTML, RTF, PRINTER family |
| Featured in: | Modifying the Default Style Definition for the HTML and Markup Languages |
| See: | font-definition |
specifies the font to use. If you supply multiple fonts, then the destination device uses the first one that is installed on your system.
You cannot be sure what fonts are available to someone who is viewing your output in a browser or printing it on a high-resolution printer. Most devices support
times
courier
arial, helvetica.
| Tip: | When you specify this attribute for a table, it 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, you must set the attribute for a cell. |
| Applies to: | cells and graphs |
| ODS Destinations: | HTML, RTF, PRINTER family |
| Featured in: | Creating a Stand-Alone Style Definition |
| See: | string |
specifies the size of the font.
is a nonnegative number.
| See: | dimension |
| Restriction: | If you specify a dimension, then you must specify a unit of measure. Without a unit of measure, the number becomes a relative size. |
The value of size is relative to all other font sizes in the document.
| Range: | 1 to 7, for size |
| Tip: | When you specify this attribute for a table, it 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, you must set the attribute for a cell. |
| Applies to: | table, cells, and graphs |
| ODS Destinations: | HTML, RTF, PDF, PCL, and PS |
| Featured in: | Creating a Stand-Alone Style Definition |
specifies the style of the font. In many cases, italic and slant map to the same font.
| Tip: | When you specify this attribute for a table, it 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, you must set the attribute for a cell. |
| Applies to: | tables, cells, and graphs |
| ODS Destinations: | HTML, PCL, PDF, PS, and RTF |
| Featured in: | Creating a Stand-Alone Style Definition and Modifying the Default Style Definition for the HTML and Markup Languages |
specifies the font weight. weight can be any of the following:
MEDIUM
BOLD
DEMI_BOLD
EXTRA_BOLD
LIGHT
DEMI_LIGHT
EXTRA_LIGHT
| Restriction: | You cannot be sure what font weights are available to someone who is viewing your output in a browser or printing it on a high-resolution printer. Most devices support only MEDIUM and BOLD, and possibly LIGHT. |
| Tip: | When you specify this attribute for a table, it 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, you must set the attribute for a cell. |
| Applies to: | tables, cells, and graphs |
| ODS Destinations: | HTML, PCL, PDF, PS, and RTF |
| Featured in: | Creating a Stand-Alone Style Definition |
specifies the font width compared to the width of the usual design. relative-width can be any of the following:
NORMAL
COMPRESSED
EXTRA_COMPRESSED
NARROW
WIDE
EXPANDED
| Restriction: | Few fonts honor these values. |
| Tip: | When you specify this attribute for a table, it 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, you must set the attribute for a cell. |
| Applies to: | tables, cells, and graphs |
| ODS Destinations: | HTML, RTF, PCL, PDF, PS, and RTF |
| Featured in: | Creating a Stand-Alone Style Definition |
specifies the color of the foreground, which is primarily the color of text.
| Tip: | When you specify this attribute for a table, it 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, you must set the attribute for a cell. |
| Applies to: | tables, cells, and graphs |
| ODS Destinations: | HTML, PCL, PDF, PS, and RTF |
| Overridden by: | CBACK= option in the SAS/GRAPH GOPTIONS statement |
| Featured in: | Modifying the Default Style Definition for the HTML and Markup Languages |
| See: | color |
specifies the type of frame to use on a table. The following table shows the possible values for frame-type and their meanings:
| Applies to: | tables |
| ODS Destinations: | HTML, PRINTER family, and RTF |
| Featured in: | Modifying the Default Style Definition for the HTML and Markup Languages |
specifies whether or not to put a border around the frame for an HTML file that uses frames.
places a border around the frame for an HTML file that uses frames.
specifies not to put a border around the frame for an HTML file that uses frames.
| Applies to: | frame |
| ODS Destinations: | HTML |
specifies the width of the border around the frames for an HTML file that uses frames.
| Applies to: | frame |
| ODS Destinations: | HTML |
| See: | dimension |
specifies the width of the space between frames for HTML that uses frames.
| Applies to: | frame |
| ODS Destinations: | HTML |
specifies the direction for the gradient effect for a graph's background, legend background, charts, walls, and floors. Use XAXIS for a left-to-right gradient and YAXIS for a bottom-to-top gradient.
| Applies to: | graphs |
| ODS Destinations: | HTML |
specifies the window or frame in which to open the target of the link. target can be one of the following values.
opens the target in a new, blank window. The window has no name.
opens the target in the window from which the current window was opened.
opens the target in the browser's search pane.
| Restriction: | Only available in Internet Explorer 5.0 or later. |
opens the target in the current window.
opens the target in the topmost window.
opens the target in the specified window or the frame.
| Default: | _SELF |
| Applies to: | cells |
| ODS Destinations: | HTML |
specifies the name of the style sheet class to use for the table or cell.
| Applies to: | document |
| ODS Destinations: | HTML |
| See: | string |
provides the value of the content type for pages that you send directly to a web server rather than to a file.
| Tip: | The value of string is usually "text/html". |
| Applies to: | document |
| ODS Destinations: | HTML |
| See: | string |
specifies the entire doctype declaration for the HTML document, including the opening "<!DOCTYPE" and the closing ">".
| Applies to: | document |
| ODS Destinations: | HTML |
| See: | string |
specifies an id for the table or cell. The id is for use by a JavaScript.
| Applies to: | tables and cells |
| ODS Destinations: | HTML |
| See: | string |
specifies individual attributes and values for the table or cell.
| Applies to: | document |
| ODS Destinations: | HTML |
| See: | string |
specifies the image to appear in the graph. This image can be positioned or tiled.
| Applies to: | graphs |
| ODS Destinations: | HTML |
| Overridden by: | IBACK= and IMAGESTYLE=TILE options in the SAS/GRAPH GOPTIONS statement |
| See: | string |
specifies that the output be indented one more indention level, using the number of spaces specified by the INDENT= statement.
| Default: | The default value for XML is 2. For all other ODS destinations, the default value is 0. |
| ODS Destinations: | MARKUP, RTF and PRINTER family |
specifies the number of spaces that you want the output to indent.
specifies justification. In graphs, this option specifies the justification of the image specified with the IMAGE= statement.
specifies center justification.
| Alias: | C |
specifies aligning the values by the decimal point.
| Alias: | D |
specifies left justification.
| Alias: | L |
specifies right justification.
| Alias: | R |
| Restriction: | Not all contexts support RIGHT. If RIGHT is not supported, it is interpreted as CENTER. |
| Interaction: | If the column is numeric, then values are aligned to the right if you specify JUST=C and JUSTIFY=OFF. | ||||
| Interaction: | All destinations except LISTING justify the values in columns as if JUSTIFY=ON for JUST=R and JUST=L. | ||||
| Main discussion: | Values in Table Columns and How They Are Justified | ||||
| Applied to: | tables, cells, and graphs | ||||
| ODS Destinations: | HTML, PCL, PDF, PS, and RTF | ||||
| Tip: |
For PRINTER Family destinations and the
MARKUP destination, you can use the style attribute JUST= with the style attribute
VJUST= in the style element PAGENO to control the placement of page numbers.
For example, the following statement would produce a page number that is centered at the bottom of the page: style PageNo from TitleAndFooters / just=c vjust=b; |
||||
| Tip: |
For PRINTER Family destinations and the
MARKUP destination, you can control the placement of dates by using the style
attribute JUST= with the style attribute VJUST= in any of the following style
elements:
For example, the following statement would produce a date in the body file that is left justified at the top of the page: style BodyDate from Date / just=l vjust=t; |
specifies the left margin for the document.
| Applies to: | document |
| ODS Destinations: | HTML, RTF, PRINTER family |
| See: | dimension |
controls the line style for a graph. Possible values are SAS/GRAPH line types one through 46. If LINESTYLE=1, then a solid line is drawn. Dashed lines are drawn when values between (and including) two and 46 are specified as the LINESTYLE= value.
| Applies to: | graphs |
| ODS Destinations: | HTML, RTF, PRINTER family |
| See also: | SAS/GRAPH Software: Reference, Volumes 1 and 2 |
specifies the thickness (width) of a line that is part of a graph. This attribute can appear in many style elements that pertain to graphs such as GraphAxisLines and GraphBorderLines. If you specify a percent, it represents a percentage of the width of the window or display.
is a nonnegative number.
| See: | dimension |
| Restriction: | The LINETHICKNESS= attribute does not apply to output generated as a result of GRSEG (graph segment) output. |
| Overridden by: | WIDTH= option in the AXIS or SYMBOL statement, or other options that are specific to charts that set line width. |
| Applies to: | graphs |
| ODS Destinations: | HTML, RTF, PRINTER Family |
| See also: | SAS/GRAPH Software: Reference, Volumes 1 and 2 |
specifies the color for links that have not yet been visited.
| Applies to: | document |
| ODS Destinations: | HTML, RTF, and PDF |
| See: | color |
specifies whether or not to make this entry in the table of contents a link to the body file.
specifies to make this entry in the table of contents a link to the body file.
specifies not to make this entry in the table of contents a link to the body file.
| Applies to: | document |
| ODS Destinations: | HTML |
specifies whether or not to double space between entries in the table of contents.
specifies to double space between entries in the table of contents.
specifies not to double space between entries in the table of contents.
| Applies to: | document |
| ODS Destinations: | HTML |
specifies the size of marker symbols used to represent data values in graphs.
is a nonnegative number that specifies the size of marker symbols.
| Tip: | The MARKERSIZE= attribute is valid only for SAS/GRAPH and ODS statistical graphics. |
| See: | For a list of marker symbols, see SAS/GRAPH Software: Reference, Volumes 1 and 2. |
| See: | dimension |
specifies the symbol used to represent data values in graphs.
specifies the name of the marker symbol.
| Requirement: | string must be enclosed in quotation marks. |
| See: | string |
| Tip: | The MARKERSYMBOL= attribute is valid only for SAS/GRAPH and ODS statistical graphics. |
| See: | For a list of marker symbols, see SAS/GRAPH Software: Reference, Volumes 1 and 2. |
specifies how to handle space characters.
does not allow SAS to break a line at a space character.
allows SAS to break a line at a space character if appropriate.
| Applies to: | cells |
| ODS Destinations: | All |
specifies the height for a graph or graphics in a document.
Note: When used with graphs, the OUTPUTHEIGHT=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 OUTPUTHEIGHT=dimension is not applied to
the graph. ![[cautionend]](../common.hlp/images/cautend.gif)
| Alias: | CELLHEIGHT= |
| Restriction: | The OUTPUTHEIGHT= option does not apply to output generated as a result of GRSEG (graph segment) output. |
| Applies to: | graphs and documents |
| ODS Destinations: | HTML, RTF, PRINTER family |
| Overridden by: | YPIXELS= option in the SAS/GRAPH GOPTIONS statement |
| See: | dimension |
specifies the width of a table, line, or a graph. If you specify a percent, it represents a percentage of the width of the window or display.
Note: When used with graphs, the OUTPUTHEIGHT=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 OUTPUTHEIGHT=dimension is not applied to
the graph. ![[cautionend]](../common.hlp/images/cautend.gif)
is a nonnegative number.
| See: | dimension |
| Alias: | CELLWIDTH= |
| Restriction: | The OUTPUTHEIGHT= option does not apply to output generated as a result of GRSEG (graph segment) output. |
| Tip: | Use OUTPUTWIDTH=100% to make the table or graph as wide as the window that it is open in. |
| Applies to: | tables and graphs |
| ODS Destinations: | HTML, RTF, PRINTER family |
| Overridden by: | XPIXELS= option in the SAS/GRAPH GOPTIONS statement |
specifies an upper limit for extending the width of the column.
| 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. If you make the overhang factor greater than 1, then the text can extend beyond the specified width. |
| Applies to: | document |
| ODS Destinations: | HTML, RTF, PRINTER family |
specifies HTML to place at page breaks.
| Applies to: | document |
| ODS Destinations: | HTML |
| See: | string |
specifies the HTML code to place after the table or cell.
| Applies to: | tables or cells |
| ODS Destinations: | HTML |
| Featured in: | Modifying the Default Style Definition for the HTML and Markup Languages |
| See: | string |
specifies an image to place before the table or cell.
names a GIF or JPEG file. You can use a simple filename, a complete path, or a URL.
| See: | string |
is a reference that has been assigned to an external file. Use the FILENAME statement to assign a fileref. (For information, see the FILENAME statement in SAS Language Reference: Dictionary.)
| Applies to: | tables or cells |
| ODS Destinations: | HTML, PCL, PDF, PS, and RTF |
specifies text to place after the cell or table.
| Applies to: | tables or cells |
| ODS Destinations: | HTML, PCL, PDF, PS, and RTF |
| See: | string |
specifies the HTML code to place before the table or cell.
| Applies to: | tables or cells |
| ODS Destinations: | HTML |
| See: | string |
specifies an image to place before the table or cell.
names a GIF or JPEG file. You can use a simple filename, a complete path, or a URL.
| See: | string |
is a reference that has been assigned to an external file. Use the FILENAME statement to assign a fileref. (For information, see the FILENAME statement in SAS Language Reference: Dictionary.)
| Applies to: | tables or cells |
| ODS Destinations: | HTML, PCL, PDF, PS, and RTF |
specifies text to place before the cell or table.
| Applies to: | tables or cells |
| ODS Destinations: | HTML, PCL, PDF, PS, and RTF |
| See: | string |
determines how less-than signs (<), greater-than signs (>), and ampersands (&) are interpreted. 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.
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 destination so that the characters are not interpreted as part of the markup language. Using ON enables you to show markup language tags in your document.
interprets special characters as markup language tags. That is, when OFF is in effect, the characters are passed to the HTML or other MARKUP destination without any protection so that the special characters are interpreted as part of the markup language.
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.
| Applies to: | cells |
| ODS Destinations: | HTML, MARKUP family, PRINTER family, and RTF |
specifies the right margin for the document.
| Applies to: | document |
| ODS Destinations: | HTML, RTF, PRINTER family |
| See: | dimension |
specifies the types of rules to use in a table. The following table shows the possible values for rule and their meanings:
| Applies to: | tables |
| ODS Destinations: | HTML, RTF, PRINTER family |
| Featured in: | Defining a Table and Graph Style |
indicates 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]](../common.hlp/images/cautend.gif)
| Applies to: | graphs |
| ODS Destinations: | HTML |
| See: | color |
specifies text to insert in the HTML. The string must be valid HTML for the context in which the style element is created. 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.
| Applies to: | cells |
| ODS Destinations: | HTML |
| See: | string |
specifies the top margin for the document.
| Applies to: | document |
| ODS Destinations: | HTML, RTF, PRINTER family |
| See: | dimension |
specifies a transparency level. Valid values are 0.0 (opaque) to 1.0 (transparent).
| Applies to: | graphs |
| ODS Destinations: | HTML |
| See: | dimension |
specifies a URL to link to from the current cell.
| Applies to: | cells |
| ODS Destinations: | HTML, RTF, and PDF |
specifies the color for links that have been visited.
| Applies to: | document |
| ODS Destinations: | HTML and RTF |
| See: | color |
specifies vertical justification. In graphs, this option specifies the vertical justification of the image specified with IMAGE=.
specifies bottom justification.
| Alias: | B |
specifies center justification.
| Alias: | M |
specifies top justification.
| Alias: | T |
specifies whether or not to make the image that is specified by BACKGROUNDIMAGE= into a "watermark." A watermark appears in a fixed position as the window is scrolled.
specifies to make the image that is specified by BACKGROUNDIMAGE= into a "watermark."
specifies not to make the image that is specified by BACKGROUNDIMAGE= into a "watermark."
| Applies to: | document |
| ODS Destinations: | HTML |
| Bark Style Definition Attribute Values |
Values for style attributes are one of the following:
Values for style attributes are one of the following:
is a string that identifies a color. A color can be
color names that are supported by SAS/GRAPH. These names include
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 definition is used:
Note: Use
these colors only if
you are running SAS in the windowing environment. ![[cautionend]](../common.hlp/images/cautend.gif)
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). You can use the Color Naming System to form a color by
combining a chromatic hue with a lightness, a saturation, or both
combining the achromatic hue black or white without qualifiers.
| 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. | |||
You can combine these words to form a wide variety of colors. Some examples are
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]](../common.hlp/images/cautend.gif)
You can also specify hues that are intermediate between two neighboring colors. To do so, combine one of the following adjectives with one of its neighboring colors:
For example, you can use the following as hues:
| See also: | SAS/GRAPH Software: Reference, Volumes 1 and 2 for information about SAS/GRAPH colors. |
is a nonnegative number, optionally followed by one of the following units of measure:
| 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 |
is the name of a font, the font size, and font keywords. A font definition has the following general format:
| ("font-face-1 <... , font-face-n>", font-size, keyword-list) |
font-size specifies the size of the font. font-size can be a dimension or a number without units of measure. If you specify a dimension, then you must 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 document. For more information see dimension.
keyword-list specifies the font weight, font style, and font width. You can include one value for each, in any order. The following table shows the keywords that you can use:
| 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: | Creating and Modifying a Style Definition with User-Defined Attributes |
is a reference to an attribute that is defined in the current style definition or in the parent style definition (or beyond). The value that you use is the name of the style element followed by the name of an attribute, in parentheses, within that element. For example, suppose that you create a style element called DATACELL that uses the FOREGROUND= and BACKGROUND= style elements this way:
style datacell / background=blue
foreground=white;
Later, you can ensure that another style element, NEWCELL, uses the same background color by defining it this way:
style newcell / background=datacell(background);
Similarly, suppose that you create a style element called HIGHLIGHTING that defines three attributes this way:
style highlighting / "go"=green "caution"=yellow "stop"=red;Later, you can define a style element called MESSAGES that uses the colors that are defined in HIGHLIGHTING:
style messages;
"note"=highlighting("go")
"warning"=highlighting("caution")
"error"=highlighting("stop");In this way, multiple style elements
could use the colors that you define in HIGHLIGHTING. If you decide to change
the value of go to blue, you simply change
its value in the definition of HIGHLIGHTING, and every style element that
references highlighting ("go") will use blue instead of green.
Note: In the first example, the style attribute BACKGROUND=
is a predefined style attribute. Therefore, when you reference it, you do
not put it in quotation marks. However, in the second example, go is a user-defined attribute. You define it with quotation
marks, and when you reference it, you must use quotation marks. ![[cautionend]](../common.hlp/images/cautend.gif)
You can use a special form of reference to get a value for a style attribute from the macro table at the time that the style element is used. For example, the following STYLE statement uses the current value of the macro variable bkgr for the background color of the style element cell:
style cell / background=symget("bkgr");
| Featured in: | Creating and Modifying a Style Definition with User-Defined Attributes |
Copyright © 2006 by SAS Institute Inc., Cary, NC, USA. All rights reserved.