Propriété côté légende CSS
Exemple
Spécifiez l'emplacement des légendes de tableau :
#example1 {
caption-side: bottom;
}
#example2 {
caption-side: top;
}
Définition et utilisation
La caption-side
propriété spécifie le placement d'une légende de tableau.
Valeur par défaut: | Haut |
---|---|
Hérité: | Oui |
Animable : | non. En savoir plus sur l'animation |
Version: | CSS2 |
Syntaxe JavaScript : | objet .style.captionSide="bas" |
Prise en charge du navigateur
Les nombres dans le tableau indiquent la première version du navigateur qui prend entièrement en charge la propriété.
Property | |||||
---|---|---|---|---|---|
caption-side | 1.0 | 8.0 | 1.0 | 1.0 | 4.0 |
Syntaxe CSS
caption-side: top|bottom|initial|inherit;
Valeurs de propriété
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 |
Pages connexes
Tutoriel CSS : Tableau CSS
Référence HTML DOM : propriété captionSide