CSS Text Properties – Complete Guide
CSS provides various properties to style and format text, including font styles, alignment, spacing, and decorations.
1. Changing Text Color (color)
✅ Changes the text color to red.
2. Text Alignment (text-align)
✅ Aligns text to the center.
š¹ Values: left, right, center, justify.
3. Text Decoration (text-decoration)
✅ Removes the underline from links.
š¹ Other values: underline, overline, line-through, blink.
4. Text Transformation (text-transform)
✅ Converts text to uppercase.
š¹ Other values: capitalize, lowercase.
5. Text Indentation (text-indent)
✅ Adds a 30px indentation at the start of the paragraph.
6. Letter Spacing (letter-spacing)
✅ Increases the space between letters.
7. Word Spacing (word-spacing)
✅ Adds 5px space between words.
8. Line Height (line-height)
✅ Adjusts spacing between lines.
9. Text Shadow (text-shadow)
✅ Adds a shadow to text.
š¹ Format: x-offset y-offset blur-radius color
10. Controlling Text Overflow (text-overflow)
✅ Ensures long text ends with ....
Full Example:

