text-aligntext-align*
*



Contents  *



Index  *Topic Contents
*Previous Topic: position
*Next Topic: text-decoration

text-align

Description

Describes how text is aligned within the element.

Since this property is inherited, all block-level elements inside the DIV element with CLASS=center will be centered.

Syntax

{ text-align: left | right | center | justify}

Remarks

This attribute is inherited.

Example

The following example centers the text.

DIV.center { text-align: center }

Applies To

BLOCKQUOTE, BODY, CENTER, DD, DIR, DIV, DL, DT, FIELDSET, FORM, H1, H2, H3, H4, H5, H6, HR, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, TABLE, TD, TH, TR, UL, XMP

Scripting Property

textAlign


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.