2018.2

Table Of Contents
l A class: .class. Class rules apply to all HTML elements with that class. When you
create a class, choose a name that indicates what the class is used for, e.g. small
for a class that gives elements the font size small. The class name has to be
preceded by a dot, e.g. .small.
l An ID: #id. An ID is always preceded by #, e.g. #sender. When you create an ID,
choose a name that indicates what the ID is used for, e.g. #sender would refer to the
HTML element with information about the sender.
Note
Each ID should be unique and can only be used once in each section.
l An HTML element: p, h1, table, etc. Type the tag name without the angle brackets.
l A combination of HTML elements, separated by a comma. The CSS rule will apply
to all HTML elements that are listed in the selector. For instance, a CSS rule with
the selector h1, p applies to first level headings as well as paragraphs.
l HTML elements inside other HTML elements. For instance, a rule for all paragraphs
inside a div element has the selector: div p.
l Etcetera. See https://www.w3schools.com/cssref/css_selectors.asp for more CSS
selectors and combinations of CSS selectors.
5. Select the layout options that should apply to selected elements; see "Styling and
formatting" on page645. Note: where a width can be set as a percentage, it is a
percentage of the space between the left and right margin.
6.
Click the Apply button to see how a setting affects any elements that are subject to the
selector. (You may have to move and resize the Stylesheet dialog before opening the Edit
Rule dialog, in order to be able to see the template that you are working on.) If all is well,
click OK.
7. In the Stylesheets dialog, click the selector that you chose. All CSS rules for that selector
will become visible in a box below the list of selectors.
Editing plain CSS
l
Click the button Advanced in any property sheet to open a CSS property editor. Type
CSS properties at the left and values at the right.
l
In the Resources pane at the left, double-click the global stylesheet or the stylesheet for
the relevant context. The file opens in the workspace in the middle.
Page 652