I'll start with an opinion: chasing a pixel-perfect layout for HTML-based results in a tool like SAS Enterprise Guide -- that's probably more effort than it's worth. Of course SAS programmers who are accustomed to producing output for journals and other research are used to employing all kinds of tricks for RTF and PDF. But HTML is so dependent on browser, user display preferences, styles in CSS, etc. -- you can spend a lot of energy and still not achieve the result you want.
That said, in EG and SAS there are multiple factors that contribute to HTML appearance:
Style selection in EG preferences (using the CSS stylesheet), and you can see all of the options "previewed" in the Style Manager tool in the Tools menu. (Fun fact: I built that tool in the late 1990s for EG 1.0 and while it has been re-implemented because of technology change, it's pretty much the same as it was.)
Style template in ODS, which has the same name as the stylesheet-based thing you see previewed in the Style Manager. See the built-in styles with this program: proc template;
path sashelp.tmplmst;
list styles;
run;
You can define new styles with PROC TEMPLATE, and you can use PROC TEMPLATE to build new stylesheets that you can then add to the Style Manager in EG.
You can also edit/create a CSS file with the proper CSS classes, and use PROC TEMPLATE to read that in and create a SAS style template. You can find more doc in the ODS section of SAS documentation.
However, if you want to make style changes that everyone in a company can see/use in the same way, then you need to use PROC TEMPLATE to define and add to a central location, update the ODS template search path so it will be found when referenced, and then use EG's Style Manager to add it as an option to the selectable styles ("server-only style").
... View more