About Arbortext Styler > Styling Custom Tables > Using Background Color in Custom Tables
  
Using Background Color in Custom Tables
This topic describes how to apply background color to the body of a custom table. There are two examples listed - the first one will apply a single background color to the table while the second shows you how to create a pattern of alternating and repeating colors to the rows in the table.
If your custom table includes a header row and you want to give that a background color, use the color picker in the Header row background color field in the Background color category for the Custom Tables list. This can be a different color to that configured for the body of the table.
Example: Apply a background color to a custom table
Using this example you will apply a background color of Yellow to the body of a custom table.
1. From the Custom Tables list , select the Custom Table object whose background color you wish to configure.
2. Go to the Background color category.
3. In the Body rows background color repeating pattern field, configure the following settings:
Number of rows: 1
Color: click the color picker and select Yellow.
You will need to click the Add Component button to access the fields.
4. Preview your document for print or PDF. You will see that any elements styled via the selected Custom Table object will display a background color of yellow throughout their body.
Example: Apply a pattern of repeating background colors to a custom table
Using this example you will create a repeating background color pattern consisting of a single row colored white followed by two rows colored blue.
1. From the Custom Tables list , select the Custom Table object whose background color you want to configure.
2. Go to the Background color category.
3. In the Body rows background color repeating pattern field, configure the following settings for the default component:
Number of rows: 1
Color: click the color picker and select White.
You will need to click the Add Component button to access the fields.
4. Click Add Component again. A second set of Number of rows and color fields appears.
5. For this second component, configure the following settings:
Number of rows: 2
Color: click the color picker and select Blue.
6. Preview your document for print or PDF. You will see that any elements styled via the selected Custom Table object will display the background color pattern you have configured, and that this pattern will repeat in tables consisting of more than three body rows.
Support for row background color in custom tables
The table below shows support for background color in available output formats.
Output
Support
Editor view
Supported*
Print / PDF via APP
Supported
Print / PDF via FOSI
Supported*
Print / PDF via XSL-FO
Supported*
All HTML outputs
Supported*
RTF
Supported*
* The Restart pattern after page or column break option is not available in this output format.