Properti gaya-aturan kolom CSS
Contoh
Tentukan gaya aturan antar kolom:
div
{
column-rule-style: dotted;
}
Lebih banyak contoh "Coba Sendiri" di bawah ini.
Definisi dan Penggunaan
Properti column-rule-style
menentukan gaya aturan antar kolom.
Nilai bawaan: | tidak ada |
---|---|
Diwarisi: | tidak |
Animasi: | tidak. Baca tentang animasi |
Versi: kapan: | CSS3 |
Sintaks JavaScript: | objek .style.columnRuleStyle="bertitik" |
Dukungan Peramban
Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung properti.
Angka yang diikuti oleh -webkit- atau -moz- menentukan versi pertama yang berfungsi dengan awalan.
Property | |||||
---|---|---|---|---|---|
column-rule-style | 50.0 4.0 -webkit- |
10.0 | 52.0 2.0 -moz- |
9.0 3.1 -webkit- |
37.0 15.0 -webkit 11.1 |
Sintaks CSS
column-rule-style: none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit;
Nilai properti
Value | Description | Play it |
---|---|---|
none | Default value. Defines no rule | |
hidden | Defines a hidden rule | |
dotted | Defines a dotted rule | |
dashed | Defines a dashed rule | |
solid | Defines a solid rule | |
double | Defines a double rule | |
groove | Specifies a 3D grooved rule. The effect depends on the width and color values | |
ridge | Specifies a 3D ridged rule. The effect depends on the width and color values | |
inset | Specifies a 3D inset rule. The effect depends on the width and color values | |
outset | Specifies a 3D outset rule. The effect depends on the width and color values | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Lebih Banyak Contoh
Contoh
Bagi teks dalam elemen <div> menjadi tiga kolom:
div
{
column-count: 3;
}
Contoh
Tentukan celah 40 piksel di antara kolom:
div
{
column-gap: 40px;
}
Contoh
Tentukan lebar, gaya, dan warna aturan antar kolom:
div
{
column-rule: 4px double #ff00ff;
}
Halaman Terkait
Tutorial CSS: Beberapa Kolom CSS
Referensi HTML DOM: properti columnRuleStyle