1.5

Table Of Contents
Text and paragraphs have a number of formatting options that are not available for other
elements: font styles and line height, for example. See "Styling text and paragraphs" on
page464.
Boxes and a number of other elements can have a background color and/or background image;
see "Background color and/or image" on page468.
Several elements, such as boxes, images, paragraphs, and tables, can have a border; see
"Border" on page469.
Boxes, images, tables, text and other elements can be rotated; see "Rotating elements" on
page483.
Spacing (padding and margin) helps to position elements relative to other elements in the
template; see "Spacing" on page478.
The best way to position elements depends on the output channel for which the template is
intended; see "How to position elements" on page462.
The locale setting influences how dates, numbers and amounts of money are displayed; see
"Locale" on page484.
Styling templates with CSS files
The Layout toolbar and the Format menu offer many possibilities to style every piece of a
template. However, styling every single element, one after another, is a lot of work and, more
importantly, can result in a template with a messy mix of styles that isn’t easy to maintain and
lacks consistent design. Therefore the preferred way to style templates is with CSS: Cascading
Style Sheets.
The basic idea behind CSS is to separate the structure and contents of a (HTML) document as
much as possible from the presentation of that document.
Cascading Style Sheets were originally designed for use with web pages, or HTMLfiles. Since
every template in the Designer is constructed in HTML, CSS files can also be used in the
Designer.
Instead of setting the font size, line height, color etc. for each and every paragraph in the
template itself, you can define a layout for all paragraphs, and for all output channels, in a CSS
file.
Page 454