Hi:
I tried this with ODS HTML3
[pre]
title; footnote;
ods html3 file='c:\temp\testjust_ht3.xls' style=sasweb;
proc print data=sashelp.class;
var name /style(data)={htmlstyle="text-align:right;" cellwidth=1in};
var age height;
run;
ods html3 close;
[/pre]
And when I opened the HTML 3.2 file with Excel, the Name was right-justified (I made the cellwidth bigger, so you could see the effect without enlarging the name column manually).
There must be some difference between HTML 3.2 (ODS HTML3) and the HTML generated by HTMLCSS (ODS HTMLCSS) and Excel's interpretation of the 2 versions of HTML tags -- The "vanilla" HTML 3.2 file and text-align worked with Excel and the HTMLCSS-generated file did not (even though it was HTML 3.2). Very strange -- but it didn't work at all with regular ODS HTML (HTML 4.0 tags) or ODS MSOFFICE2K (MS-HTML tags) -- so I suspect some HTML/Excel strangeness at work.
If you must use HTMLCSS or HTML4, then you might consider contacting Tech Support for further help.
cynthia