Understanding and Customizing the Dynamic HTML Standard Edition Template

prevnext

Understanding character styles


The Dynamic HTML Standard Edition template includes the same character style names as the Portable HTML Standard Edition template. The WebJump character style is the same as in the Portable HTML Standard Edition template, but all the other styles are slightly different. All other character style in the Dynamic HTML Standard Edition template use this form:

 <opentag $BPInlineAttributes;>$DATA;</closetag>

The HTML tags <opentag> and <closetag> apply functionality to the enclosed text. The building block BPInlineAttributes inserts the class attribute so that character styles can be easily controlled from the standard.css file. For example, the character style Strong is defined as:

 <strong $BPInlineAttributes;>$DATA;</strong>

And $BPInlineAttributes is defined as:

 class="$STYLENAME;"

The $STYLENAME; macro produces the name of the current Publisher style definition (in this case, Strong). So, the result would be:

 <strong class="Strong">$DATA;</strong>

This tag uses the formatting attributes defined for Strong in the standard.css file.

 .Strong { font-weight: bold}
Note: Using the <STRONG> tag along with a Strong class attribute may seem redundant, but it's necessary for browsers that don't support CSS files. They use the <STRONG> tag and ignore the CSS formatting information.

prevnext



Quadralay Corporation
http://www.webworks.com
Voice: (512) 719-3399
Fax: (512) 719-3606
sales@webworks.com