text format
Text Color
The color property is used to set the color of the text.
Colors are most commonly specified via CSS:
## Hexadecimal value - e.g.: #FF0000
An RGB value - such as: RGB(255,0,0)
- ##Color The name - such as: red
Alignment of text
Text can be centered or aligned to the left or right, justified on both ends.
When text-align is set to "justify", each line Is expanded to equal width and the left and right margins are aligned (like magazines and newspapers).
Text decoration
The text-decoration property is used to set or delete text decoration.
From a design perspective, the text-decoration attribute is mainly used to remove the underline of the link (example on the right). You can also decorate the text like this:
h1 {text-decoration:overline;}
h2 {text-decoration:line-through;}h3 {text-decoration:underline;}
Text Transform
can be used to make all words uppercase or lowercase, or to capitalize the first letter of each word.
Example:
p.uppercase {text-transform:uppercase;}/* All uppercase*/
p.lowercase {text-transform :lowercase;}/* All lowercase*/p.capitalize {text-transform:capitalize;}/* Capitalize the first letter*/
Text indent
Example: first line indent 50px
##p {text-indent:50px;}