Name
align — NN n/a IE 4 DOM 1
Synopsis
Read/Write
Defines how the element is aligned relative to surrounding text
content. Most values set the vertical relationship between the
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 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
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.