Style captionSide Property

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP







<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]
-->




Style captionSide Property


❮ Style Object



Example


Move the table caption to the bottom of the table:



document.getElementById("myCap").style.captionSide = "bottom";

Try it Yourself »


Definition and Usage


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



Browser Support














Property
captionSide Yes 9.0 Yes Yes Yes

Syntax


Return the captionSide property:



object.style.captionSide

Set the captionSide property:



object.style.captionSide = "top|bottom|initial|inherit"

Property Values












Value Description
top Default. Positions the table caption above the table
bottom Positions the table caption below the table
initial Sets this property to its default value. Read about initial
inherit Inherits this property from its parent element. Read about inherit

Technical Details








Default Value: top
Return Value: A String, representing the position of the table caption
CSS Version CSS2

More Examples



Example


Return the table caption:



alert(document.getElementById("myCap").style.captionSide);

Try it Yourself »


Related Pages


CSS tutorial: CSS Table


CSS reference: caption-side property




❮ Style Object

Popular posts from this blog

Malaysia to Papua New Guinea by motorcycle?

.name

List of Bhojpuri films