Colonnes de style Propriété
Exemple
Divisez le texte en trois colonnes, d'au moins 100 pixels chacune :
document.getElementById("myDIV").style.columns = "100px 3";
Définition et utilisation
La propriété columns est une propriété raccourcie pour définir columnWidth et columnCount.
Prise en charge du navigateur
Property | |||||
---|---|---|---|---|---|
columns | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Syntaxe
Renvoyez la propriété des colonnes :
object.style.columns
Définissez la propriété des colonnes :
object.style.columns = "auto|column-width column-count|initial|inherit"
Valeurs de propriété
Value | Description |
---|---|
auto | Default value. Sets both the column width to "auto" and the column-count to "auto" |
columnWidth | The width of the columns |
columnCount | The number of 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: | voiture voiture |
---|---|
Valeur de retour : | Une chaîne, représentant la propriété des colonnes d'un élément |
Version CSS | CSS3 |
Pages connexes
Tutoriel CSS3 : Colonnes multiples CSS3
Référence CSS : propriété des colonnes
❮ Objet de style