Stile columnGap Proprietà
Esempio
Specificare uno spazio di 40 pixel tra le colonne:
document.getElementById("myDIV").style.columnGap = "50px";
Definizione e utilizzo
La proprietà columnGap specifica lo spazio tra le colonne.
Nota: se c'è una regola di colonna tra le colonne, apparirà nel mezzo dello spazio vuoto.
Supporto browser
Property | |||||
---|---|---|---|---|---|
columnGap | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Sintassi
Restituisce la proprietà columnGap:
object.style.columnGap
Imposta la proprietà columnGap:
object.style.columnGap = "length|normal|initial|inherit"
Valori di proprietà
Value | Description |
---|---|
length | A specified length that will set the gap between the columns |
normal | Default value. Specifies a normal gap between the columns. W3C suggests a value of 1em |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Dettagli tecnici
Valore di default: | normale |
---|---|
Valore di ritorno: | Una stringa, che rappresenta la proprietà column-gap di un elemento |
Versione CSS | CSS3 |
Pagine correlate
Tutorial CSS3: CSS3 più colonne
Riferimento CSS: proprietà column-gap
❮ Oggetto stile