CSS Text Properties
A Quick Classroom Guide
1. Color & Background-color
• `color` → text color
• `background-color` → background of the text element
2. Font Properties
• `font-family` → typeface (Arial, sans-serif)
• `font-size` → size of text (px, em, rem)
• `font-weight` → normal, bold, 100–900
• `font-style` → italic, oblique, normal
• `font-variant` → small-caps
3. Text Alignment & Direction
• `text-align` → left, right, center, justify
• `text-align-last` → last line alignment
• `direction` → ltr, rtl
• `unicode-bidi` → complex rendering
4. Text Decoration
• `text-decoration-line` → underline, overline, line-through
• `text-decoration-style` → solid, dotted, dashed, wavy
• `text-decoration-color` → color of line
• `text-decoration` (shorthand)
5. Text Transform
• `text-transform` → uppercase, lowercase, capitalize, none
6. Text Spacing
• `letter-spacing` → space between letters
• `word-spacing` → space between words
• `line-height` → space between lines
7. Text Indent & Overflow
• `text-indent` → indentation of first line
• `text-overflow` → clip, ellipsis
8. Text Shadow
• `text-shadow` → add shadow effect to text
9. Vertical Alignment
• `vertical-align` → baseline, top, middle, bottom
10. Writing Modes
• `writing-mode` → horizontal-tb, vertical-rl, vertical-lr