Style captionSide attribute
- Página anterior boxSizing
- Próxima página caretColor
- Voltar à página anterior Objeto Style HTML DOM
Definition and usage
captionSide
Sets or returns the position of the table title.
See also:
CSS Tutorial:Tabela CSS
CSS Reference Manual:caption-side attribute
Instance
Example 1
Move the table title to the bottom of the table:
document.getElementById("myCap").style.captionSide = "bottom";
Example 2
Return the table title:
alert(document.getElementById("myCap").style.captionSide);
Syntax
Return the captionSide attribute:
object.style.captionSide
Set the captionSide attribute:
object.style.captionSide = "top|bottom|initial|inherit"
Attribute value
Value | Description |
---|---|
top | Default. Places the table title above the table. |
bottom | Places the table title below the table. |
initial | Sets this property to its default value. See initial. |
inherit | Inherits this property from its parent element. See inherit. |
Technical details
Default value: | top |
---|---|
Return value: | String, representing the position of the table title. |
Versão do CSS: | CSS2 |
Suporte ao navegador
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Suporte | 9.0 | Suporte | Suporte | Suporte |
- Página anterior boxSizing
- Próxima página caretColor
- Voltar à página anterior Objeto Style HTML DOM