javascript IMG align
@July 5, 2008, 5:02 a.m.
align | Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1 |
|
Read/Write |
Defines how the IMG element is aligned relative to surrounding text content. Most values set the vertical relationship between the IMG element and surrounding text. For example, to align the bottom of the element with the baseline of the surrounding text, the align property value would be baseline. An element can be "floated" along the left or right margin to let surrounding text wrap around the IMG element. |
|
Example | |
document.logoImg.align = "absmiddle"; |
|
Value | |
Any of the following alignment constant values (as a string): absbottom | absmiddle | baseline | bottom | right | left | none | texttop | top. |
|
Default | |
bottom |
Permanent URL:
http://javascript.gakaa.com/img-align.aspx
Powered by Linode.