1.7

Table Of Contents
To keep all CSS style rules together you could add the style rules to a class in the CSS file
(see "Styling templates with CSS files" on page490) and assign that class to the a row or cell
using addClass (see "Examples" on page815).
For another example, see this how-to: Change detail line formatting based upon a data field
value.
Background color and/or image
In any type of template, boxes, tables and table cells can have a background color and/or a
background image.
To select a background image or color:
1.
Right-click the box and click Box on the shortcut menu.
2. Alternatively, select the box (see "Selecting an element" on page411; note that a Box is a
<div> element) and on the Format menu click Box.
3.
Click the Background tab.
To select a background color: click the downward pointing arrow next to Color to select a
color from the list of predefined colors (see "Defining colors, spot colors and tints" on
page514), or click the colored rectangle to open the Color Picker dialog; see "Color Picker" on
page593. In this dialog you can select a color from the color wheel or using the eye dropper
tool, set RGB or CMYK color values or enter a hexadecimal color code.
To select a background image:
1.
Click the Select Image button.
2.
Click Resources, Disk or Url, depending on where the image is located.
Page 510