Below are style properties and values for text. (I've included here only properties now supported by Internet Explorer and Netscape -- I'll add others when they are supported)
|
Property
|
Description
|
Values
|
Example
|
Text Properties
|
|
line-height (inherited)
|
Sets the distance between baselines of text
|
size (pt, in, cm, px, em)
percentage (%) of font-size
|
{ line-height: 18pt }
{ line-height: 120% }
|
|
text-decoration (not inherited)
|
Underlines or otherwise highlights text
|
none
underline
overline
line-through
|
{ text-decoration: underline }
|
|
text-align (inherited)
|
Sets alignment of text to the left or right margin, or to the center of the page
|
left
center
right
|
{ text-align: right }
|
|
text-indent (inherited)
|
Sets distance from left margin
|
size (pt, in, cm, px)
|
{ text-indent: 0.5in }
|
|
vertical-align (not inherited)
|
aligns text vertically within the element
|
baseline
sub
super
top
text-top
middle
bottom
text-bottom
percentage of line-height from baseline (%)
|
{ vertical-align: super }
|
|
text-transform (inherited)
|
Sets case rules for text
|
capitalize (capitalizes first letter of each word)
uppercase
lowercase
|
{ text-transform: capitalize }
|
|
letter-spacing (inherited)
|
sets letter-spacing for text
(support expected in IE 4.0 final release)
|
normal,
size (pt, in, cm, px, em)
|
{ letter-spacing: 2pt }
|