HTML and CSS Reference
In-Depth Information
Although it is usually considered separate from font properties, you
may include this text-related line-height property's value as part of the
shorthand notation of the font property. [ The font property, ] The text-align property
Text justified with respect to the page margins is a rudimentary feature
of nearly all text processors. The text-align property brings that capab-
ility to HTML for any block-level tag. (The W3C standards people prefer
that you use CSS2 text-align styles rather than the explicit align attrib-
ute for block-level tags such as <div> and <p> .) Use one of four values:
left, right, center , or justify . The default value is, of course, left . [*]
[*] For left-to-right locales. In right-to-left locales, the default is right .
For example:
div {text-align: right}
tells the styles-conscious browser to align all the text inside <div> tags
against the right margin. The justify value tells the browser to align the
text to both the left and right margins, spreading the letters and words
in the middle to fit.
All the popular browsers currently support the left, right, and center
alignments, but not justify. The text-decoration property
The text-decoration property produces text embellishments, some of
which are also available with the original physical style tags. Its value
is one or more of the keywords underline, overline, line-through , and
Search WWH ::

Custom Search