Usage Note 23627: In ODS, have cascading style sheets changed from Release 8.1 to Release 8.2?
In Release 8.2, CSS behavior is changed
for font size and table cells.
Beginning with Release 8.2, the size of the fonts is no longer specified
in points; rather, they are Small, Medium, and Large.
In addition, in 8.2,
the TD class has been added for cell values.
- The TD class is used
for all right-justified data, which is the numeric data.
- The Data
class is used for left-justified data, which is the character data.
Therefore, remember to maintain similar
formatting for the Data and
TD classes with the exception of the alignment.
This change was introduced in order to reduce the size of
the HTML file. Here's how it works:
The TD class is just like the Data class but right-justified.
Therefore, for a cell that is numeric data, the style is built into the
TD tag; it does not need a
class= attribute. If a cell is character data, it is
gets class="data". If a cell is centered it gets an inline style override:
style="align:center"
This change eliminates style="align:right" and
style="align:left" for
99% of the data cells and eliminates class="data" for
about 90% of the data cells.
In all, this saves 31 to 32 characters per data cell.
If this does not meet your needs, the experimental
ODS tagsets (experimental in Release 8.2 and production in SAS 9) handles this very differently and would be worth exploring.
Here are the style definitions for Data and TD:
.Data{
Font-Family: Arial, Helvetica, Helv;
Font-Size:small;
Font-weight:normal;
Font-style:normal;
Color:#000000;
BackGround-Color:#D3D3D3;
Text-align: left;
}
TD{
Font-Family: Arial, Helvetica, Helv;
Font-Size:small;
Font-weight:normal;
Font-style:normal;
Color:#000000;
BackGround-Color:#D3D3D3;
Text-align: right
}
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:45:06 |
| Date Created: | 2003-12-24 13:06:15 |