2022.1

Table Of Contents
Tip
Right-click and choose Format, or press Ctrl + Shift + F to "pretty-print" the CSS and
make it easier to read and edit.
Note
Block comments (/* ... */) are allowed in CSS, but single-line comments (// ...) are not
standard and might not work as expected in all browsers.
In the Designer, syntax highlighting doesn't work on single-line comments in CSS files.
Step 2: apply CSS to the content
After editing the CSS file(s), make sure that the CSS rules actually apply to one or more
elements in the template.
l CSS rules for HTML elements, such as paragraphs, are automatically applied to all
elements with the corresponding HTML tag.
l To make a CSS rule for a certain class or ID work for an element in your document, you
have to add the class or ID to that HTML element (as described below).
Note
Classes may be reused throughout one section, but a specific ID should not be
used more than once in each section. CSS layout rules for an element with a
certain ID only apply to the first element with that ID in each section. If you have two
sections inside of a Print context, then you can have the same ID on two sections;
they will both be affected by the CSS rules for the element with that ID.
l Style sheets only apply to sections in which they are included; see "Applying a style
sheet to a section" on the facing page.
Page 793