BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

I would like to know which style element effects what part of the ODS output.

e.g.
PROC TEMPLATE;
DEFINE style styles.mystyle /store = libname.templat;
parent = styles.default;

STYLE body from document /
backgroundimage = 'c:\myimage.jpg';

STYLE systemtitle from titlesandfooters /
font = fonts('TitleFont2')
foreground = color_list('Color3')
just = center
vjust = top;

END;
1 REPLY 1
Cynthia_sas
Diamond | Level 26
Hi:
One place to start is in the documentation. If you go to:

SAS(R) 9.1 Output Delivery System User's Guide -->
HTML, Printer Family, and Markup Languages Style Elements and Their Inheritances

you will find the "official" documentation for inheritance. Generally speaking, however, there are a couple of quicker ways to track down the style elements that you might need to change. Once you know the element you need to change, then you can go to the doc to find its inheritance chain.

The alternative methods are described in this Forum posting:
http://support.sas.com/forums/thread.jspa?messageID=4032࿀

One method involves the use of creating an HTML file and then looking for the CLASS= attribute in the HTML source (that is your link to the "lowest level" Style element that controls the style). Or the other method is to use a diagnostic tagset, like style_popup to find the style elements.

Another good resource is the R&D and Tech Support FAQ on Proc Template FAQ site:
http://support.sas.com/rnd/base/topics/templateFAQ/Template.html (start here and then look for the specific PROC TEMPLATE or STYLE template links)

Good luck,
cynthia

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1105 views
  • 0 likes
  • 2 in conversation