Name
align — NN n/a IE 4 DOM 1
Synopsis
Read/Write
Controls the alignment of the LEGEND
element with
respect to the containing FIELDSET
element. The
permissible values do not always work as planned in Internet Explorer
4. For example, the bottom
value displays the
label at the top left of the fieldset rectangle. So does the
top
value, although it is supposed to be centered
along the top. The other values (center
,
left
, and right
) work as
expected, but on the Macintosh, the center
and
right
settings inexplicably widen the fieldset
rectangle. Be sure to check your desired setting on both operating
system platforms.
Example
document.all.myLegend.align = "center"
Value
Any one of the following constant values (as a string):
bottom
| center
|
left
| right
|
top
.
Default
left
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.