Hi, Robert:
STYLE= overrides to the rescue. The first STYLE= override (for HEADER) in the PROC REPORT statement is the color you want the spanning header (Koala or Wombat). Then the STYLE= overrides for NAME and AGE headers are set in the DEFINE statement. And, of course, the NOOBS from PROC PRINT should change to NOWD in the PROC REPORT statement.
If you wanted NAME and AGE to be the SAME color, then you'd have to use the technique shown for the boys' table and if you wanted NAME and AGE to be DIFFERENT colors, then you'd have to use the technique shown for the girls' table. No guarantees what will happen if you open the file with something other than a browser -- should be OK in Word, might be OK in Excel. Notice that I added STYLE=SASWEB to the ODS invocation statement -- this means that the statement level changes will override the style settings that are coming from the SASWEB style template. This type of STYLE= override syntax works with PROC REPORT, PROC PRINT and PROC TABULATE. (slightly different syntax for each procedure -- many examples in user group papers) -- as shown in these papers:
http://www2.sas.com/proceedings/sugi28/015-28.pdf
http://www.lexjansen.com/pharmasug/2010/sas/sas-hw-sas02.pdf
and this one, which discusses using style overrides to perform traffic lighting of cell values:
http://www2.sas.com/proceedings/sugi31/142-31.pdf
cynthia
[pre]
title ;
ods tagsets.tableeditor file="c:\temp\sample_tbled_alt.html"
options(panelcols='2' doc='help') style=sasweb;
ods escapechar='^';
proc report data=sashelp.class (where=(sex='F')) nowd
style(header)={background=pink};
column ('koala' name age );
define name / style(header)={background=purple};
define age / style(header)={background=cx666666};
run;
proc report data=sashelp.class (where=(sex='M')) nowd
style(header)={background=blue};
column ('wombat' name age );
define name / style(header)={background=cx666666};
define age / style(header)={background=cx666666};
run;
ods tagset.tableeditor close ;
[/pre]