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 |
font-size-adjust |
Numeric value |
font-stretch |
normal |
font-style |
normal |
font-variant |
normal |
font-weight |
normal |
font |
Separate values by a space in the
following order (those that are not defined will use inherited or default
initial values): font-style |
Property |
Possible
Values |
color |
Valid color names, RGB values,
hexidecimal notation. Rgb(233,23,32) |
direction |
ltr ltr =
left-to-right |
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 |
text-decoration |
none |
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 |
white-space |
normal |
word-spacing |
A length (in addition to the
default space) or the predefined value of normal. |
- text-first
- text-indent
- first-indent
- text-first-indent
- It is a style class defined in CSS
- gives the author access to content not specifically declared in the document
- Pseudoclass is separated by an underscore from the name of the element
- Pseudoclass are separated by a colon from the name of the elemernt