The alignment of the CAPTION object with respect to its containing parent table object is defined in this property. The expected and widely available set of alignment specifiers are available:
absbottom
absmiddle
baseline
bottom
center
left
middle
right
texttop
top
These may not all be supported by all browsers.
Note also that this property is deprecated in favor of using style properties such as textAlign and verticalAlign, which correspond to the style sheet attributes text-align and vertical-align.
Browsers may not always render the caption identically. The left and right values in particular are rendered differently between MSIE and Netscape. MSIE draws the caption at the top and bottom but takes the left and right as a justification control. Netscape places the caption to the left or right of the table.
Currently MSIE transgresses the rules laid down by the HTML 4.0 standard.
See also: | style.captionSide, style.textAlign, style.verticalAlign |
Prev | Home | Next |
CAPTION object | Up | CAPTION.vAlign |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |