Text Properties

CSS Properties



Property

Possible Values

font-family

Valid font family names or generic family names, i.e. Arial, Verdana, sans-serif, "Times New Roman", Times, serif, etc.

font-size

Lengths (number and unit type— i.e. 1em, 12pt, 10px, 80%) or one of the following predefined values:

xx-small
x-small
small
medium
large
x-large
xx-large
smaller
larger

font-size-adjust

Numeric value

font-stretch

normal
wider
narrower
ultra-condensed
extra-condensed
condensed
semi-condensed
semi-expanded
expanded
extra-expanded
ultra-expanded

font-style

normal
italic
oblique

font-variant

normal
small-caps

font-weight

normal
bold
bolder
lighter
100 -900

font

Separate values by a space in the following order (those that are not defined will use inherited or default initial values):

font-style
font-variant
font-weight
font-size
line-height
font-family

Property

Possible Values

color

Valid color names, RGB values, hexidecimal notation.

Rgb(233,23,32)

direction

ltr
rtl

ltr = left-to-right
rtl = right-to-left

line-height

Numbers, percentages, lengths, and the predefined value of normal.

letter-spacing

A length (in addition to the default space) or the predefined value of normal.

text-align

left
right
center
justify

text-decoration

none
underline
overline
line-through
blink

text-indent

Lengths and percentages.

text-shadow

A list containg a color followed by numeric values (separated by spaces) that specify:

1.    The color for the shadow effect

2.    Horizontal distance to the right of the text

3.    Vertical distance below the text

4.    Blur radius

text-transform

none
capitalize
uppercase
lowercase

white-space

normal
pre
nowrap

word-spacing

A length (in addition to the default space) or the predefined value of normal.

Programs