CSS Text Property Cheatsheet

font-* properties
Property Value Name, Description
font-family "font name",
alt font 1,
alt font 2
Name the font and its alternative fonts if not installed. Use "" if spaces in name.
font-size 1em,
10px,
10%
Font size, expressed in em, px, %, etc.
font-style italic,
oblique,
normal
Italic style or reset.
font-weight bold,
normal,
700
Font weight, in text or hundreds, 400 being normal, 800 being bold.
text-* properties
Property Value Name, Description
text-align left,
center,
right,
justify
Horizontal alignment, relative to parent.
text-decoration underline,
overline,
line-through,
blink, none
Adding lines or reset to none
text-shadow 5px 5px 2px blue Shadow for text (horizontal vertical smoothness color)
text-transform capitalize,
lowercase,
uppercase
Letter case
other text properties
Property Value Name, Description
letter-spacing 5px,
1.2em,
inherit
Space between the letters.
line-height 18px,
150%,
1.5
Line height, in px, % or unit relative to the text size.
vertical-align baseline,
middle, sub,
super, top,
bottom
Vertical alignment (! For tables or inline-block elements only !)
word-spacing 3px,
1.2em,
normal
Space between words.