Text Properties

Cascading Style Sheet Property Reference

provided by: 
Originally published at Internet.com


Text properties give you complete control over how the browser displays an element's text. You can change its color, size, font, spacing, and so on. The sections that follow describe each text property you can set.

letter-spacing



letter-spacing determines the spacing between each letter in a line of text. You can set this property to normal and let the browser worry about it, or you can set this property to any valid length, such as 1px.

line-height



You use the line-height property to set the leading for an element. An element's leading is the distance between the baselines of two text lines. You can use any valid length or a percentage (which is relative to the parent element's line-height property), or you can set this property to normal. Note that the spacing is added before each line, not after.

--------------------------------- CAUTION: This setting doesn't work well on text lines that use multiple font sizes on the same line of text. ---------------------------------

text-align



text-align defines how text is aligned in an element. You can set this property to any of the values shown in Table B.14.

Table B.14 text-align Values

...

Read article at Internet.com site

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML