Move the table of contents to a different part of the frame in ODS HTML output


To reposition the table of contents in the frame in ODS HTML output, specify the CONTENTPOSITION= style attribute within the Frame style element when creating a custom style with PROC TEMPLATE. Valid values are T, B, L, or R (top, bottom, left, or right, respectively). The sample code below illustrates this. View the sample output.

proc template;
define style styles.test;
parent=styles.default; 
style Frame from Document /
contentposition = R
bodyscrollbar = auto
bodysize = *
contentscrollbar = auto
contentsize = 23%
framespacing = 1
frameborderwidth = 4
frameborder = on;
end; 
run;
 
ods html file="file.html" contents="c.html" frame="f.html" path="." style=styles.test;
 
proc print data=sashelp.class;
run;

ods html close;

See also the full PROC TEMPLATE FAQ and Concepts.