The SAS Output Delivery System and reporting techniques

ODS HTML background and foreground attrs

Reply
Contributor
Posts: 22

ODS HTML background and foreground attrs

Hi,

I'm trying to 'hide' the display of selected cells in and ODS HTML output using Proc Report. Basically making the background and foreground attributes the same color using a call define. unfortunately, it appears SAS is defaulting the foreground to black. Is there a way to get around this?
.
.
.
call define(_col_,'style','style={background=VLIGR foreground=VLIGR}');

thanks
SAS Super FREQ
Posts: 8,861

Re: ODS HTML background and foreground attrs

Hi:
I suspect the problem is the color name...you are using VLIGR -- I don't see that as a possible color name in the list of SAS names:
http://support.sas.com/kb/31/471.html

When I try background=YELLOW foreground=YELLOW, it works for me. If you are using the default HTML color scheme (the gray and blue color scheme), then you might want to try:
[pre]
call define(_col_,'style',
'style={background=cxD3D3D3 foreground=cxD3D3D3}');
[/pre]

Otherwise, the site above shows the named colors (SAS Names -- not necessarily the same as Microsoft names) above. When you look at the RESULTS of the note, you can hover your mouse over a color and see the HLS value (Hue, Lightness, Saturation) or the CX value (HTML/RGB color index value). I used a CX color value above. It stands for a hexadecimal percentage of colors:
[pre]
CXRRGGBB, where
CX000000 means 0% red, 0% green, 0% blue (black)
CXFFFFFF means 100% red, 100% green, 100% blue (white)
CXCCCCCC means 80% red, 80% green, 80% blue
etc, etc
[/pre]

cynthia
Ask a Question
Discussion stats
  • 1 reply
  • 127 views
  • 0 likes
  • 2 in conversation