Properti kolom-aturan-warna CSS
Contoh
Tentukan warna aturan antar kolom:
div
{
column-rule-color: #ff0000;
}
Lebih banyak contoh "Coba Sendiri" di bawah ini.
Definisi dan Penggunaan
Properti column-rule-color
menentukan warna aturan antar kolom.
Nilai bawaan: | Warna elemen saat ini |
---|---|
Diwarisi: | tidak |
Animasi: | Ya. Baca tentang animasi |
Versi: kapan: | CSS3 |
Sintaks JavaScript: | objek .style.columnRuleColor="#0000ff" |
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-color | 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-color: color|initial|inherit;
Nilai properti
Value | Description | Play it |
---|---|---|
color | Specifies the color of the rule. Look at CSS Color Values for a complete list of possible 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 columnRuleColor