Propiedad del lado del título CSS
Ejemplo
Especifique la ubicación de los títulos de las tablas:
#example1 {
caption-side: bottom;
}
#example2 {
caption-side: top;
}
Definición y uso
La caption-side
propiedad especifica la ubicación de un título de tabla.
Valor por defecto: | cima |
---|---|
Heredado: | sí |
Animable: | No. Leer sobre animable |
Versión: | CSS2 |
Sintaxis de JavaScript: | objeto .style.captionSide="abajo" |
Compatibilidad con navegador
Los números de la tabla especifican la primera versión del navegador que es totalmente compatible con la propiedad.
Property | |||||
---|---|---|---|---|---|
caption-side | 1.0 | 8.0 | 1.0 | 1.0 | 4.0 |
Sintaxis CSS
caption-side: top|bottom|initial|inherit;
Valores de propiedad
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: Tabla CSS
Referencia HTML DOM: propiedad captionSide