Understanding and Customizing the Dynamic HTML Standard Edition Template |
Instead of modifying the CSS file provided with the Dynamic HTML Standard Edition template, you can using your own CSS file. To make this work, you need to make several changes to your project. You'll need to:
To add the CSS file to your project, add it as a support file by following these steps:
Next, you need to modify the page templates to reference the new CSS file.
Each page template in the Dynamic HTML Standard Edition template contains a line of code that references the CSS file. You need to change this to reference your new CSS file. Follow these steps:
<link rel="StyleSheet" href="standard.css" type="text/css"
media="screen">
By default, each paragraph and character style definition inserts a class tag that corresponds to the name of the style itself. This is done using the BPBlockAttributes building block (for paragraphs) and the BPInlineAttributes building block (for characters). If your new CSS file uses the same style names as the default CSS style, you're ready to go. But if your new CSS file uses different style names, you need to modify the style definitions in Publisher to use those style names. For example, if the new CSS file contains a style definition for "MainSection," which should be used for headings mapped to the Publisher Heading1 style, you have two choices:
Here's how to modify the Heading1 style definition. The original Heading1 style definition looks like this (slightly simplified):
<H1 $BPBlockAttributes;> $DATA; </H1>
Replace the BPBlockAttributes building block, so that your style looks like this:
<H1 class="MainSection"> $DATA; </H1>
![]() Quadralay Corporation http://www.webworks.com Voice: (512) 719-3399 Fax: (512) 719-3606 sales@webworks.com |