• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Text Attributes

A number of style attributes also are available to use with text, and you can see a sample of them in Table 21.7.

Table 21.7. Text Style Attributes
Attribute NS2 NS3 NS4 NS6 IE3a IE3b IE4 IE5 IE5.5 IE6
letter-spacing    x   x x x 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   x x x x x x x x
  CSS1: normal | <number> | <length> | <percentage>
  CSS2: inherit
  Default: normal
  Applies to: All elements
  Gives the minimum height of an element’s box.
text-align   x x x x x x x x
  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   x x x x x x x x
  CSS1: none | [ underline || overline || line-through || blink ]
  CSS2: inherit
  Default: none
  Applies to: All elements
  Gives the “decorations” for the text in an element, such as underlining, overlining, and line-through (also called strike-through).
text-indent   x x x x x x x x
  CSS1: <length> | <percentage>
  CSS2: inherit
  Default: 0
  Applies to: Block-level elements
  Specifies the indentation of the first line of text in a block element.
text-shadow        x x x
  CSS2: none | [<color> || <length> <length> <length>? ,]* [<color> || <length> <length> <length>?] | inherit
  Default: none
  Applies to: All elements
  Inherited: No
  Enables you to give a comma-separated list of shadow effects to apply to text in the element.
vertical-align    x   x x x x
  CSS1: baseline | sub | super | top | text-top | middle | bottom | text-bottom | <percentage> | <length>
  CSS2: inherit
  Default: baseline
  Applies to: Inline-level and table-cell elements
  Indicates the vertical position of text in an element.
white-space   x x      x
  CSS1: normal | pre | nowrap
  CSS2: inherit
  Default: normal
  Applies to: Block-level elements
  Indicates how whitespace in an element displays.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint