word-spacing
Value: normal | <length>
Initial: normal
Applies to: all elements
Inherited: yes
Percentage values: N/A
The length unit indicates an addition to the default space between words. Negative values can be set, but browsers may restrict the appearance of such settings. The specific spacing algorithm is also browser dependant and may be influenced by text alignment such as justification (see text-align below)
See the Length units topic for details of specific length units.
letter-spacing
Value: normal | <length>
Initial: normal
Applies to: all elements
Inherited: yes
Percentage values: N/A
Similar to word spacing above, this property indicates an addition to the default space between characters. Also as above, negative values are allowed, the character spacing algorithm is browser dependant and character spacing may be influenced by any text alignment properties set.
text-decoration
Value: none | [ underline | overline | line-through | blink ]+
Initial: none
Applies to: all elements
Inherited: no, but see clarification below
Percentage values: N/A
This property can be used to decorate text blocks. Any colours required for the decoration are inherited from the any color property value settings.
For example :
A:link, A:visited, A:active { text-decoration: underline }
Would underline all links within the document.
vertical-align
Value: baseline | sub | super | top | text-top | middle | bottom | text-bottom | <percentage>
Initial: baseline
Applies to: all elements
Inherited: yes
Percentage values: refer to the 'line-height' of the element itself
This property determines the vertical positioning of the element. The defined keywords set the alignment of the element relative to the parent element.
'baseline'
align the baseline of the element with the baseline of the parent
'middle'
align the middle of the element with the baseline plus half the x-height of the parent
'sub'
subscript the element
'super'
superscript the element
'text-top'
align the top of the element with the top of the parent element's font
'text-bottom'
align the bottom of the element with the bottom of the parent element's font
The remaining values set the vertical alignment of the element relative to the formatted line that the element is a part of:
'top'
align the top of the element with the tallest element on the line
'bottom'
align the bottom of the element with the lowest element on the line
Percentage values refer to the 'line-height' of the element itself. E.g., a value of '-100%' will lower the element to where the baseline of the next line should have been.
text-transform
Value: capitalize | uppercase | lowercase | none
Initial: none
Applies to: all elements
Inherited: yes
Percentage values: N/A
'capitalize'
uppercases the first character of each word
'uppercase'
uppercases all letters of the element
'lowercase'
lowercases all letters of the element
'none'
neutralizes inherited value.
The transformation that actually occurs is browser dependant. Also, it may differ for different languages.
text-align
Value: left | right | center | justify
Initial: UA specific
Applies to: block-level elements
Inherited: yes
Percentage values: N/A
This property describes how text is aligned within the element. The actual justification algorithm used is UA and human language dependent. As above, implementation of this property is browser dependant and may differ for different languages.
text-indent
Value: <length> | <percentage>
Initial: 0
Applies to: block-level elements
Inherited: yes
Percentage values: refer to parent's width
This specifies the indent that should occur before the first formatted content line and accepts a negative value.