Usage Note 23419: In ODS HTML output, how can I precede an item with a logo or GIF file in the table of contents?
Use
cascading style sheets. In the class .Contentitem, add the property
LIST-STYLE-IMAGE. Although this cannot be done alone
with PROC TEMPLATE, it can be done with the use of a CSS. Create a
CSS with the STYLESHEET= option on the ODS statement.
This is a powerful option that allows you the ability to read or create a
CSS on the fly. See the full topic about CSS and ODS
for more information. View output.
.ContentItem{
Font-Family: Arial, Helvetica, Helv;
Font-Size:small;
Font-weight:normal;
Font-style:normal;
Color:#002288;
BackGround-Color:#B0B0B0;
Margin-Left:6pt;
List-Style-image: url(arrow_1.gif);
}
ods html body='gbody.html'
contents='gcont.html'
frame='gframe.html' stylesheet=(url='temp.css');
proc print data=sasuser.class;
title 'Adding GIF files to the TOC';
run;
proc freq data=sasuser.class;
run;
ods html close;
See also the full PROC TEMPLATE FAQ and Concepts.
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Usage Note |
Priority: | low |
Topic: | Query and Reporting ==> Creating Reports ==> Graphical SAS Reference ==> ODS (Output Delivery System) Third Party ==> Output ==> HTML
|
Date Modified: | 2003-10-20 16:04:18 |
Date Created: | 2003-09-29 18:46:50 |