Propriedade do lado da legenda CSS
Exemplo
Especifique o posicionamento das legendas da tabela:
#example1 {
caption-side: bottom;
}
#example2 {
caption-side: top;
}
Definição e uso
A caption-side
propriedade especifica o posicionamento de uma legenda de tabela.
Valor padrão: | principal |
---|---|
Herdado: | sim |
Animavel: | não. Leia sobre animáveis |
Versão: | CSS2 |
Sintaxe JavaScript: | objeto .style.captionSide="bottom" |
Suporte ao navegador
Os números na tabela especificam a primeira versão do navegador que oferece suporte total à propriedade.
Property | |||||
---|---|---|---|---|---|
caption-side | 1.0 | 8.0 | 1.0 | 1.0 | 4.0 |
Sintaxe CSS
caption-side: top|bottom|initial|inherit;
Valores de propriedade
Value | Description | Play it |
---|---|---|
top | Puts the caption above the table. This is default | |
bottom | Puts the 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 |
Páginas relacionadas
Tutorial CSS: Tabela CSS
Referência HTML DOM: propriedade captionSide