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

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

Usage

<input align="center">

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
input.align reflects <input align="absbottom"> N N N N N N Y N
input.align reflects <input align="absmiddle"> N N N N N N Y N
input.align reflects <input align="baseline"> N N N Y N Y Y Y
input.align reflects <input align="bottom"> N N N Y Y Y Y Y
input.align reflects <input align="left"> N N N Y Y Y Y Y
input.align reflects <input align="middle"> N N N Y Y Y Y Y
input.align reflects <input align="right"> N N N Y Y Y Y Y
input.align reflects <input align="texttop"> N N N N N N Y N
input.align reflects <input align="top"> N N N Y Y Y Y Y

Further reading


Sign in to add a comment