Modifying Background Colors

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 ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.