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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access