Text using CSS
The property text-indent allows you to add an elegant touch to text paragraphs by applying an indent to the first line of the paragraph.
For example, a 30px is applied to all text paragraphs:
p {
text-indent: 30px;
}
The CSS property text-align corresponds to the attribute align used in old versions of HTML. Text can either be aligned to the left, to the right or center. In addition to this, the value justify will stretch each line so that both the right and left margins are straight.
The property text-decoration allows to add different decorations or effects to text. For example, you can underline the text, have a line through or above the text.
h1 {
text-decoration: underline;
}
h2 {
text-decoration: overline;
}
h3 {
text-decoration: line-through;
}
The spacing between text characters can be specified using the property letter-spacing. The value of the property is simply the desired width.
The text-transform property controls the capitalization of a text. You can choose to capitalize, use uppercase or lowercase regardless of how the original text is looks in the HTML code.