Text Properties
Text properties cover those aspects of text formatting other than what can be adjusted merely by changing the font. These include how far the text is indented, how the paragraph is aligned, and so forth. The most common of these properties include:
text-indentThe
text-indentproperty specifies how far in to indent the first line of the block. (Indents of all lines are generally applied via margin properties.) Hanging indents can be specified by makingtext-indentnegative. This property only applies to block-level elements. For example, this style rule indents the first line of thestoryelement by 0.5 inches from the left side:story { text-indent: 0.5in }text-alignThe
text-alignproperty can be set toleft,right,center, orjustifyto align the text with the left edge of the block or the right edge of the block, to center the text in the block, or to spread the text out across the block. This property only applies to block-level elements.text-decorationThe
text-decorationproperty can be set tounderline,overline,line-through, orblinkto produce the obvious effects. Note, however, that the CSS specification specifically allows browsers to ignore the request to make elements blink. This is a good thing.text-transformThe
text-transformproperty has three main values:capitalize,uppercase, andlowercase.Uppercasechanges all the text to capital letters LIKE THIS.Lowercasechanges all the text to lowercase letters like this.Capitalizesimply uppercases the ...