October 2009
Beginner
636 pages
13h 35m
English
Each of the previous examples in this chapter has looked at changing the color of the text in your output. This example focuses on the background.
If you expect that users will want to print your HTML output a lot, you might want to modify the background color in your style template. That gray background looks fine when viewed in a browser, but it doesn't look as good when you print. Because your printer cannot print all of the way to the edge of the paper, you get output on a gray background with a white border.
You can change the background color in the color_list style element to use a white background. In the following code, the bgA color is changed from cxE0E0E0, a gray shade, to cxFFFFFF, a pure white.
PROC ...
Read now
Unlock full access