Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
Properties
 align Property

  Switch on low bandwidth view
ALIGN Attribute | align Property

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

Syntax

HTML<ELEMENT ALIGN = sAlign... >
Scripting[ sAlign = ] object.align

Possible Values

sAlignString that specifies or receives one of the following values.
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.

The property is read/write. The property has a default value of left.

DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are not supported in IE8 mode. For more information, see About Dynamic Properties.

Remarks

The default value for the th element is center.

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

Standards Information

This property is deprecated in HTML World Wide Web link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

HTMLDivElement Constructor, HTMLHeadingElement Constructor, HTMLHRElement Constructor, HTMLParagraphElement Constructor, HTMLTableCellElement Constructor, HTMLTableColElement Constructor, HTMLTableRowElement Constructor, HTMLTableSectionElement Constructor, COL, COLGROUP, DIV, hn, HR, P, TBODY, TD, TFOOT, TH, THEAD, TR
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker