The properties listed in Table 7-2 define the appearance of text formats in both HTML and RTF output.
One or more font names per CSS rules. For outputs which allow only single fonts, such as RTF, the first font name is used. For RTF output, do not enclose the font name in quotes |
|
Size; see §7.5.3 Establishing base values and units of measurement |
|
Percent or points or other units: positive number to expand text, negative number to compress text |
|
none, or a combination of underline, overline, and strike-through |
|
(HTML output only) Format name preceded by a dot, for CSS use; overrides the default .class |
[Bold]
based = Char
font weight = bold
[Italic]
based = Char
font style = italic
Bold and Italic both incorporate the properties of character format Char; see §7.6.2 Specifying default properties for character formats.
To specify text color for a heading (for example):
[MySubHeading]
based = Heading2
color = rgb(42,96,148)
To show a horizontal line above the heading, you could use either a block-property fixed-length line in any color, or an inline-property overline in the same color as the text. For the inline property you would add:
For the block property, you would instead specify a top border for the paragraph:
And then define the border format:
[MyBorder]
color = rgb(42,96,148)
type = single
thick = 1pt
space = 6pt
See §8.2 Defining border format components.
To compress text in a paragraph format using a percent value for font kern:
[CellCodePara]
based = CodePara
font size = 9pt
font kern = -5%