Procedure:
Copy one of the following files depending on which configuration you want to customize:
Configuration Name | Procedure |
---|---|
DITA | Copy topic.css to |
DITA Map | Copy map.css to |
DITA BookMap | Copy bookmap.css to |
DocBook Assembly 5.1 and 5.2[a] | Copy assembly.css to |
DocBook 5.0, 5.1 and 5.2[b] | Copy docbook5.css to |
DocBook 4 | Copy docbook.css to |
XHTML Strict, Transitional and 1.1 | Copy xhtml1.css to |
XHTML 5 | Copy xhtml5.css to |
[a] DocBook Assembly 5.1 and 5.2 documents are styled using the same [b] DocBook 5.0, 5.1 and 5.2 documents are all styled using the same |
For example, xhtml5.css
looks like this:
@import url(xhtml-config:css/xhtml5.css);
Edit this file using a text editor and add one or more CSS rules after the @import
directive.
XHTML example:
p { color: red; }
DocBook 4 or 5 example:
para { color: red; }
Let's suppose this file is called stylesheet1.css
and that you want your style sheet to be listed in the menu as "Style sheet #1
".
Add the following css configuration element to your custom .xxe
file:
<css name="Style sheet #1" location="stylesheet1.css" alternate="true" />
If you want to make your custom CSS style sheet the default one, add the following viewSettings configuration element:
<viewSettings> <center css="Style sheet #1" /> </viewSettings>