Text Sampler

text-indent

Example: p{text-indent:3em;}

Values and length positive or negative; inherited by child elements

   
letter-spacing

Example: p{letter-spacing:.2em;}

Values of any length positive or negative, Use ems or percentages instead of absolute values

   
word-spacing

Example: p{word-spacing:.2em;}

Values of any length. Easy to overdo!

   
text-decoration

Example: .retailprice{text-decoration:line-through;}

Values:underline, overline, line-through and blink. Discouraged because can be annoying.

   
text-align

Example: p {text-aling:right;}

Values: left, right, center and justify. Text aligns horizontally so it is necessary to set properties on the containing element. For centered h1 within a div, tex-align the div not h1.

   
line-height

Example: p {line-height:1.5;}

Values: any numerical value (no value type is needed). Can center single line of type but not a paragraph.

   
text-transform

Example: p{text-transform:capitalized;}

Values: uppercase, lowercase, capitalize and none.

   
vertical-align:

Example: vertical-align 60%

Values: any length value, sub, sup, top, middle, bottom

Valid XHTML 1.0 Strict