Gaya kolomGap Properti
Contoh
Tentukan celah 40 piksel di antara kolom:
document.getElementById("myDIV").style.columnGap = "50px";
Definisi dan Penggunaan
Properti columnGap menentukan jarak antar kolom.
Catatan: Jika ada aturan kolom di antara kolom, itu akan muncul di tengah celah.
Dukungan Peramban
Property | |||||
---|---|---|---|---|---|
columnGap | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Sintaksis
Kembalikan properti columnGap:
object.style.columnGap
Setel properti columnGap:
object.style.columnGap = "length|normal|initial|inherit"
Nilai properti
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 |
Detail Teknis
Nilai Bawaan: | normal |
---|---|
Nilai Kembali: | Sebuah String, mewakili properti celah kolom dari suatu elemen |
Versi CSS | CSS3 |
Halaman Terkait
Tutorial CSS3: Beberapa Kolom CSS3
Referensi CSS: properti celah kolom
Objek Gaya