align attribute | align property

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

 

 

Show:
© 2014 Microsoft. All rights reserved.