SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 23630: In ODS output, how can I avoid page breaks when using an existing CSS?

DetailsAboutRate It

When you use an existing cascading style sheet (CSS), style attributes specified in the style template are not applied. To get rid of the horizontal rule, which is the line that divides the tables, use the HR selector with the property and value Display:none. To get rid of the printed page breaks, specify the P selector with the property and value Display:none. If you specify both selectors, separate them by commas. This can be done in the CSS or with the HEADTEXT= option.

   ods html file='temp.html' headtext="<style>p,hr {display:none}</style>"
     stylesheet=(url="temp.css");

   proc print data=one;
   run;

   proc print data=sashelp.class;
   run;

   ods html close;

See also Cascading Style Sheets and ODS.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASAlln/a
* 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.