align attribute | align property

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
2 out of 5 rated this helpful - Rate this topic

Sets or retrieves the alignment of the object relative to the display or table.

Syntax

HTML<element align="p" ... >
JavaScript

p = object.align

Property values

Type: String

center

Aligns to the center.

justify

Aligns to the left and right edge.

left

Default. Aligns to the left edge.

right

Aligns to the right edge.

Standards information

Remarks

The default value for the th element is center.

The justify possible value is available only for the div, hn, and p elements.

See also

col
colGroup
div
hn
hr
p
tBody
td
tFoot
th
tHead
tr

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.