1. Computing & Technology

Discuss in my forum

XHTML Attributes - align

By , About.com Guide

align:

set the horizontal and vertical alignment of the div element relative to the current location

Used with Elements:

Content:

bottom left middle right top

There are also a few options that are not part of the HTML 4.0/XHTML 1.0 specification that some browsers may support, using these is not recommended as it's unsure how they will display in all browsers:

  • absbottom
  • absmiddle
  • baseline
  • texttop

Default:

Not required

Deprecated in XHTML 1.0:

Yes

DTD:

XHTML 1.0 Loose

Other Align Attributes:

©2012 About.com. All rights reserved.

A part of The New York Times Company.