Previous Next


                                                       682
              CHAPTER 8                                                            Interactive Features




                           TABLE 8.74 CSS2 style attributes used in rich text strings
ATTRIBUTE           VALUE          DESCRIPTION

text-align          keyword        Horizontal alignment. Possible values: left, right, and center.

vertical-align      decimal        An amount by which to adjust the baseline of the enclosed text. A positive
                                   value indicates a superscript; a negative value indicates a subscript. The value
                                   is of the form <decimal number>pt, optionally preceded by a sign, and fol-
                                   lowed by “pt”. Examples: -3pt, 4pt.

font-size           decimal        The font size of the enclosed text. The value is of the form
                                   <decimal number>pt.

font-style          keyword        Specifies whether the enclosed text should be displayed using a normal or
                                   italic (oblique) font. Possible values: normal, italic.

font-weight         keyword        The weight of the font for the enclosed text. Possible values: normal, bold,
                                   100, 200, 300, 400, 500, 600, 700, 800, 900.
                                   Note: normal is equivalent to 400, and bold is equivalent to 700.

font-family         list           A font name or list of font names to be used to display the enclosed text. (If a
                                   list is provided, the first one containing glyphs for the specified text is used.)

font                list           A shorthand CSS font property of the form
                                   font:<font-style> <font-weight> <font-size> <font-family>

color               RGB value      The color of the enclosed text. It can be in one of two forms:
                                   • #rrggbb with a 2-digit hexadecimal value for each component
                                   • rgb(rrr,ggg,bbb) with a decimal value for each component.
                                   Note: Although the values specified by the color property are interpreted as
                                   sRGB values, they are transformed into values in a non-ICC based color space
                                   when used to generate the annotation’s appearance.

text-decoration     keyword        One of the following keywords:
                                   • underline: The enclosed text should be underlined.
                                   • line-through: The enclosed text should have a line drawn through it.
font-stretch        keyword        Specifies a normal, condensed or extended face from a font family. Support-
                                   ed values from narrowest to widest are ultra-condensed, extra-condensed,
                                   condensed, semi-condensed, normal, semi-expanded, expanded, extra-
                                   expanded, and ultra-expanded.

Previous Next