Text properties
The text properties specify how the text is formatted. The most common of these properties include:
- text-indent: this property specifies how far in to indent the first line of the text in a block element. The value is a length and can be negative to make hanging indents.
- text-align: it says how to align the text in a block element. The possible values are left, right, center, and justify.
- text-decoration: it allows to decorate the text. The values are underline, overline, line-through, and blink.
- text-transform: it allows to transform the text. Possible values are uppercase (it changes the text to capital letters), lowercase (it changes the text to lowercase letters), and capitalize (it uppercases the first letter of each word).
- white-space: it determines how the text is wrapped. Possible values are normal (this is the default: runs of whitespace are condensed, line breaks are ignored, and the text is wrapped when convenient), pre (the text is presented as written) and nowrap (runs of whitespace are condensed and the text is presented in a unique line);
-
color: the color of the text itself.