Text Color
The color property is used to set the color of the text. The color can be specified by:
The text-align property is used to set the horizontal alignment of a text.
Text can be centered, or aligned to the left or right, or justified.
The text-decoration property is used to set or remove decorations from text.
a {text-decoration:none}
The text-transform property is used to specify uppercase and lowercase letters in a text.
It can be used to turn everything into uppercase or lowercase letters, or capitalize the first letter of each word.
The text-indentation property is used to specify the indentation of the first line of a text.
The font family of a text is set with the font-family property.
The font-family property can hold several font names as a "fallback" system. If the browser does not support the first font, it tries the next font.
Start with the font you want, and end with a generic family, to let the browser pick a similar font in the generic family, if no other fonts are available.
Note: If the name of a font family is more than one word, it must be in quotation marks, like font-family: "Times New Roman".
More than one font family is specified in a comma-separated list:
Example
|
Font Style
The font-style property is mostly used to specify italic text.
This property has three values:
Setting the text size with pixels, gives you full control over the text size: