Sample 54114: Rotate column headings using the ODS HTML5 destination
Column headings can be rotated with the ODS HTML5 destination using the TRANSFORM cascading style sheet (CSS) property along with the ROTATE argument. The ROTATE argument enables you to specify the number of degrees that the headings should be rotated. This CSS style property also works for other parts of the output such as the body of the output.
The sample code on the Full Code tab illustrates the syntax needed to rotate the column headings. This example requires a browser that supports HTML5, such as Microsoft Internet Explorer 9.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
The sample code below illustrates the syntax needed to rotate the column headings. This example requires a browser that supports HTML5, such as Microsoft Internet Explorer 9.
/* Rotate column headings using the ODS HTML5 destination */
proc template;
define style styles.test;
parent=styles.htmlblue;
class header /
prehtml="<div style=""transform:rotate(30deg)"">"
posthtml="</div>";
end;
run;
ods html5 file="c:\temp.html" style=styles.test;
proc print data=sashelp.class;
run;
ods html5 close;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
Date Modified: | 2014-09-15 10:05:53 |
Date Created: | 2014-09-12 08:14:01 |
Operating System and Release Information
SAS System | Base SAS | 64-bit Enabled Solaris | 9.4 TS1M0 | |
64-bit Enabled HP-UX | 9.4 TS1M0 | |
64-bit Enabled AIX | 9.4 TS1M0 | |
Windows 7 Professional x64 | 9.4 TS1M0 | |
Windows 7 Enterprise x64 | 9.4 TS1M0 | |
Microsoft Windows Server 2012 Std | 9.4 TS1M0 | |
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M0 | |
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M0 | |
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M0 | |
Microsoft Windows Server 2008 for x64 | 9.4 TS1M0 | |
Microsoft Windows Server 2008 R2 | 9.4 TS1M0 | |
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M0 | |
Microsoft Windows 8.1 Pro | 9.4 TS1M0 | |
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M0 | |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M0 | |
Microsoft Windows 8 Pro x64 | 9.4 TS1M0 | |
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M0 | |
Microsoft® Windows® for x64 | 9.4 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.4 TS1M0 | |
Z64 | 9.4 TS1M0 | |
z/OS | 9.4 TS1M0 | |
HP-UX IPF | 9.4 TS1M0 | |
Linux for x64 | 9.4 TS1M0 | |
Solaris for x64 | 9.4 TS1M0 | |