Name
ALIGN — NN n/a IE 4 HTML 4
Synopsis
ALIGN=”where"Optional
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.
The ALIGN attribute is deprecated in HTML 4.0 in
favor of style sheets. But even a style sheet won’t position a
label along the bottom of a fieldset in Internet Explorer 4.
Example
<LEGEND ALIGN="right">Credit Card Information</LEGEND>
Value
Allowed values in HTML 4.0 are bottom |
left | right |
top. IE 4 adds center.
Default
left
Object Model Reference
- IE
[window.]document.all.elementID.align
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