Usage Note 23631: How can I embed an existing CSS file into my ODS HTML file?
By default, the CSS file is not embedded within the output HTML
file. Instead, the <link> tag points to the CSS file.
Below
is an example that embeds the external CSS file within
the HTML output file. Here the external CSS file
is read between the <head> and </head> tags.
Because the example adds the beginning HTML tags,
the NOTOP option is specified on the ODS HTML statement in order
to prevent ODS from providing another set of those tags.
filename temp 'c:\yyy.html' mod;
data _null_;
infile 'c:\egstyle.css' truncover end=last;
input;
file temp;
if _n_= 1 then do;
put '<html>';
put '<head>';
end;
put _infile_;
if last then do;
put '</head>';
put '<BODY class="Body" style=" Text-align:CENTER;">';
end;
run;
ods html file=temp(notop) stylesheet;
proc print data=sashelp.class;
run;
proc print data=ashelp.class;
run;
ods html close;
filename temp clear;
See also Cascading Style Sheets and ODS.
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 ==> Stylesheets SAS Reference ==> ODS (Output Delivery System)
|
| Date Modified: | 2004-01-05 16:44:15 |
| Date Created: | 2003-12-24 13:18:46 |