<class home>  <styles>   <back   next>

Styles

Block Attributes:

Often applied to the <p> tag.

Block attributes controll spacing and alignment of text.

•word spacing: to adjust space between words
(only supported by Netscape 6)

•letter spacing: to adjust space between characters
(unsupported by IE and Netscape 4: only version 6 of both)

•vertical alignment: helps you align text and images such as in a table cell so all text lines up with the "top" of the image, or the "middle" of the image, etc.

•text alignment: sets alignment of text on a page to center left or right.

•text indent: applies a tab indent to the first line of text in a block. (This doesn't work with the <p> tag. You have to make a new class and call it with the span tag).

ex. in style sheet
.indent {text-indent: 40px; font-weight: lighter; vertical-alignment: baseline}

use in page:
<p>This is a paragraph.<br /><span class="indent">Indent this section</span></p>

•Whitespace: controls the ignoring of white space or blank html space, useful with the <pre> tag.