The CAPTION Element


The <CAPTION> Element

You use the <CAPTION> element to add a caption to a table (see Listing 14.10 for an example). As you would expect, this element has its own properties (see Table 14.18). JavaScript's core HTML properties, methods , and events, which we covered in Chapters 5 and 6, also apply to the <CAPTION> element as well.

Table 14.18. The Properties of the <CAPTION> Element (See Chapters 5 and 6 for the JavaScript core HTML properties, methods, and events that also apply to this element.)

Property

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

align

     

x

   

x

x

x

x

 

Read/write

 

Sets or gets the alignment of the element. Set to "center" (aligns to the center), "justify" (aligns to the left and right edge), "left" (the defaultaligns to the left edge), or "right" (aligns to the right edge).

vAlign

     

x

   

x

x

x

x

 

Read/write

 

Sets or gets how contents are aligned within the row that contains them. Set to "middle " (the defaultaligns the text in the middle), "baseline " (aligns the base line), "bottom " (aligns the text at the bottom), or "top " (aligns the text at the top).



Inside Javascript
Inside JavaScript
ISBN: 0735712859
EAN: 2147483647
Year: 2005
Pages: 492
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net