Back to Topics
CSS Text Styling
What is Text Styling?
Text Styling in CSS allows you to transform plain text into visually appealing content. It covers everything from alignment and spacing to decoration and transformations, ensuring your content is readable and beautiful.
Essential Properties
- text-align — Centers, left-aligns, or right-aligns text.
- text-decoration — Adds underlines or line-through effects.
- text-transform — Converts text to uppercase or capitalize.
- font-size / font-weight — Controls the size and thickness of text.
Example Syntax
h1 {
text-align: center;
text-transform: uppercase;
letter-spacing: 2px;
}
View My Practice Work