Style Tips

block
elements

Changing the formatting of paragraphs with Style Sheets
includes additional features like justification, spacing without the use of spacer images,
text indents and more.

This text is red, justified, calling for a special instance of the P
tag which uses the Class attribute. With Embedded Style Sheets, the style rule is placed
at the top of the document like so:

P.justify {text-align:
justify; color: red}

Now you can place the paragraph anywhere in your
document with this code:

<P
Class="justify"> Here is your
text</P>

Spacing

Changing leading or spacing in your document's
paragraphs and block elements is easily done with inline style sheets. Rather than use a
vertical spacer to add different levels of spacing, simply use line-height attribute like