Text properties

Property

Value

Description

Support level

Availability

letter-spacing

Length | normal

Specifies the spacing between the characters.

CSS 2.1

4.6 or later

text-align

left | right | center | justify

Specifies the horizontal alignment of the text for an element.

CSS 2.1

3.8 or later

text-decoration

linethrough | none | overline | underline

Specifies the decoration applied to the text.

CSS 2.1

3.8 or later

text-indent

Percentage | Length

Specifies the indentation of the first line of text in a block of text.

CSS 2.1

4.6 or later

text-overflow

clip | ellipsis

Specifies the behavior of non-wrapped text.

No longer part of the CSS 3 specification

6.0 or later

text-outline

CSS 3

6.0 or later

text-shadow

List of shadow effects

Specifies the characteristics of a text drop shadow, including horizontal and vertical offset, blur radius, and color.

CSS 3

6.0 or later

text-transform

none | capitalize | uppercase | lowercase

Specifies how the text is capitalized.

CSS 2.1

4.6 or later

white-space

normal | nowrap | pre | pre-line | pre-wrap

Specifies how white space in an element is handled.

CSS 2.1

4.6 or later

word-spacing

Length | normal

Specifies the spacing between words.

CSS 2.1

4.6 or later

-webkit-text-fill-color

Color

Specifies a fill color for text.

Not part of any standard

6.0 or later

Backgrounds & foregrounds | Box model | Fonts | Lists | Tables | Text | Visual effects | Visual formatting

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus