What's new? | Help | Directory | Sign in
Google
             
Search
for
Updated Sep 19, 2008 by pilgrim
Labels: about-html, is-html-attribute, from-microsoft
ImgAlignAttribute  
The img align attribute specifies the horizontal alignment of the element within its bounding box.

You are here: Home > HTML Reference > Elements > <img> element > align attribute

Usage

The align attribute is deprecated in favor of the text-align CSS property, but browsers still support it.

Values

Elements

You can use the align attribute on the following elements:

Browser compatibility

Compatibility table legend

Test IE8 IE7 IE6 FF3 FF2 Saf3 Op9 Chrome
img.align reflects <img align="absbottom"> Y Y Y N N N Y N
img.align reflects <img align="absmiddle"> Y Y Y N N N Y N
img.align reflects <img align="baseline"> Y Y Y Y N Y Y Y
img.align reflects <img align="bottom"> Y Y Y Y Y Y Y Y
img.align reflects <img align="left"> Y Y Y Y Y Y Y Y
img.align reflects <img align="middle"> Y Y Y Y Y Y Y Y
img.align reflects <img align="right"> Y Y Y Y Y Y Y Y
img.align reflects <img align="texttop"> Y Y Y N N N Y N
img.align reflects <img align="top"> Y Y Y Y Y Y Y Y

Further reading


Sign in to add a comment