Usage Note 23368: In ODS HTML output, how can I modify the font size for all output with a single change?
You can specify the FONT_SIZE attribute within the style element Container, which is the parent of all containers. See example 1 below.
Another method is use an embedded cascading style sheet. See example 2 below, which reduces the fonts to about 20% of the normal size.
/* Example 1 font_size */
proc template;
edit styles.default as styles.test;
style container /
font_size=1;
end;
run;
/* Example 2 using a css */
ods html file="temp.html"
headtext='<style type="text/css">@media all {thead,tbody {zoom:20%}}</style>';
proc print data=sashelp.class;
run;
ods html close;
For code showing how to do this in the PRINTER family (PCL, PDF, or PS) destinations, see
FAQ 4197.
And for code showing how to do this in the RTF destination, see
FAQ 4503.
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: | SAS Reference ==> ODS (Output Delivery System) Third Party ==> Output ==> HTML
|
| Date Modified: | 2007-08-28 14:27:46 |
| Date Created: | 2003-08-11 09:14:13 |