Text Properties
As well as font properties there are properties specific to the layout and formatting
of text. Word spacing, letter spacing, text decoration, horizontal/vertical alignment,
indentation and upper/lowercase switching can be performed using the appropriate
properties. Line height is a text property, but this was dealt with in the previous
section.
- word-spacing
- specify either: normal or
a value (3em)
- letter-spacing
- specify either: normal or a value (1em)
- text-decoration
- specify:
none or underline or
overline or line-through
or blink
- vertical-align
- specify:
baseline or
sub or super or
top or text-top or
middle or bottom or
text-bottom or <percentage>(150%)
Note: 'top' and 'bottom' align to the top / bottom of the highest/lowest element
in the current line respectively. - text-transform
- specify:
capitalize or
uppercase or lowercase
or
none
- text-align
- specify: left or right or center or justify
- text-indent
- specify
a value or a percentage.