The XML+CSS Standard Edition template includes a single CSS file used by all of the generated XML files. The file, document.css, is included in your support directory and is copied to the output directory when you generate your project. The CSS file is referenced at the top of your XML files:
The <?xml-stylesheet> tag is the only location where the CSS file is identified. But through the XML source, you'll find XML coding that reference components of the style sheet:
<Body class="Body" style="display:block"> <html:a name="371906"> </html:a> This is body text </Body>
The CLASS attribute refers to a style called Body, which is defined in the CSS file.
The first section of the CSS file defines the document defaults:
a:active { color: #0000CC} a:hoover { color: #CC0033} a:link { color: #3366CC} a:visited { color: #9999CC} { font-size: 0px; font-family: Verdana, Arial, Helvetica, sans-serif;}
The next section defines the paragraph styles. These are the items that are called by the CLASS attribute. The document.css file includes style definitions for each of the paragraph and character styles found in the WebWorks Publisher Standard Edition template, including Body:
.Body { color: #000000; font-size: 12px; font-style: normal; font-weight: normal; margin-left: 0em; margin-top: 0.5em; margin-bottom: 0.5em; text-align: left; text-indent: 0em; text-decoration: none; white-space: normal }
The Body style is defined as having a font size of 12 points, using the 000000 color (black), a font without highlighting, and a margin of half an em space from the previous paragraph (or tag). If you change any of these settings in the CSS file, all the entities that use the CLASS=Body
setting will automatically change.