Name
verticalAlign — NN n/a IE 4 DOM n/a
Synopsis
Read/Write
The vertical alignment characteristic of the element. This property
operates in two spheres, depending on the selection of values you
use. See the in-depth discussion of the
vertical-align
style sheet property in Chapter 10 for details.
Example
document.all.myDIV.style.verticalAlign = "text-top"
Value
String value of an absolute measure (with units), a percentage
(relative to the next outer box element), or one of the many constant
values: bottom
| top
|
baseline
| middle
|
sub
| super
|
text-bottom
| text-top
.
Default
baseline
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.