Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Style captionSide Property

Style captionSide Property

Style Object Reference The Style object


Definition and Usage

The captionSide property sets or returns the position of a table caption.

Syntax

Set the captionSide property:

Object.style.captionSide="top|bottom|inherit"

Return the captionSide property:

Object.style.captionSide

Value Description
top Default. Positions the table caption above the table.
bottom Positions the table caption below the table.
inherit The value of the captionSide property is inherited from the parent element.

Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the captionSide property.

**Note:** IE7 and earlier versions do not support the captionSide property. IE8 only supports the captionSide property when a !DOCTYPE is specified. IE9 supports the captionSide property.


Example

Example

Move the table caption to the bottom of the table:

Runoob Tutorial(runoob.com)

    

        

        

    

    

        

        

    

    

        

        

    

My savings
Month Savings
January $100
February $150

Try it »


Style Object Reference The Style object