1.7

Table Of Contents
Each of these rules is more specific than the previous rules. All of these rules are more specific
than the rule that applies to the table as a whole.
Determining the order in which style sheets are read
For each section, the style sheets are applied in a certain order. The styles in each following
style sheet add up to the styles found in previously read style sheets. When style sheets have a
conflicting rule for the same element, class or ID, the last style sheet wins’ and overrides the
rule found in the previous style sheet.
The order in which style sheets are applied, can be changed per section in any context, and for
the Web context as a whole:
1.
On the Resources pane, expand the Contexts folder, expand the folder of the
corresponding context and then right-click the section (or right-click the Web context).
2.
Click the tab Includes.
3.
From the File types dropdown, select Stylesheets.
4. The list at the left displays the style sheets that are present in the template's resources.
The list at the right shows the style sheets that will be included in the output of the current
section (or Web sections, if you have selected the Web context). Use the Include and
Exclude buttons to move files from one list to the other.
5.
Click one of the included CSS files and use the Up and Down buttons to change the
order in which the style sheets are read.
Note: Moving a style sheet up in the list gives it less weight, because style sheets read
later will override previous ones in case of conflicting rules.
Styling text and paragraphs
There are numerous ways to format text in a template. You can apply a certain font, make text
bold, transform it to uppercase, center it, color it, etc.
This topic explains how to apply local formatting to text. It is recommended though, to format
text using style sheets; see "Styling and formatting" on page186 and "Styling templates with
CSS files" on page187.
Page 195