Javascript Reference
Categories: OBJECT

javascript OBJECT align

@July 5, 2008, 5:02 a.m.
align Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM 1  



Defines how the OBJECT element is aligned relative to surrounding text content. Most values set the vertical relationship between the OBJECT 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 OBJECT element.

document.getElementById("myObject").align = "absmiddle";

Any of the following alignment constant values (as a string): absbottom | absmiddle | baseline | bottom | right | left | none | texttop | top.




Powered by Linode.