A number of style attributes also are available to use with text, and you can see a sample of them in Table 21.7.
Attribute
NS2
NS3
NS4
NS6
IE3a
IE3b
IE4
IE5
IE5.5
IE6
letter-spacing
x
CSS1: normal <length>
CSS2: inherit
Default: normal
Applies to: All elements
This property enables you to set the spacing between text characters .
line-height
CSS1: normal <number> <length> <percentage>
Gives the minimum height of an element's box.
text-align
CSS1: left right center justify
CSS2: <string> inherit
Default:Varies
Applies to: Block-level elements
Sets alignment for the content of a block: left, right, center, or justify. CSS2 enables you to specify a string to align the text with respect to.
text-decoration
CSS1: none [ underline overline line-through blink ]
Default: none
Gives the "decorations" for the text in an element, such as underlining, overlining, and line-through (also called strike-through).
text-indent
CSS1: <length> <percentage>
Default:
Specifies the indentation of the first line of text in a block element.
text-shadow
CSS2: none [< color > <length> <length> <length>? ,]* [<color> <length> <length> <length>?] inherit
Inherited: No
Enables you to give a comma-separated list of shadow effects to apply to text in the element.
vertical-align
CSS1: baseline sub super top text-top middle bottom text-bottom <percentage> <length>
Default: baseline
Applies to: Inline-level and table- cell elements
Indicates the vertical position of text in an element.
white-space
CSS1: normal pre nowrap
Indicates how whitespace in an element displays.