Propriété columnSpan de style
Exemple
Laissez l'élément h2 s'étendre sur toutes les colonnes :
document.getElementById("myDIV").style.columnSpan = "all";
Définition et utilisation
La propriété columnSpan spécifie le nombre de colonnes sur lesquelles un élément doit s'étendre.
Prise en charge du navigateur
Property | |||||
---|---|---|---|---|---|
columnSpan | 50.0 | 10.0 | 71.0 | 10.0 | 37.0 |
Syntaxe
Renvoyez la propriété columnSpan :
object.style.columnSpan
Définissez la propriété columnSpan :
object.style.columnSpan = "1|all|initial|inherit"
Valeurs de propriété
Value | Description |
---|---|
1 | Default value. The element should span across one column |
all | The element should span across all columns |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Détails techniques
Valeur par défaut: | 1 |
---|---|
Valeur de retour : | Une chaîne, représentant la propriété column-span d'un élément |
Version CSS | CSS3 |
Pages connexes
Tutoriel CSS3 : Colonnes multiples CSS3
Référence CSS : propriété column-span
❮ Objet de style