Properti sisi teks CSS
Contoh
Tentukan penempatan keterangan tabel:
#example1 {
caption-side: bottom;
}
#example2 {
caption-side: top;
}
Definisi dan Penggunaan
Properti caption-side
menentukan penempatan keterangan tabel.
Nilai bawaan: | atas |
---|---|
Diwarisi: | Ya |
Animasi: | tidak. Baca tentang animasi |
Versi: kapan: | CSS2 |
Sintaks JavaScript: | objek .style.captionSide="bawah" |
Dukungan Peramban
Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung properti.
Property | |||||
---|---|---|---|---|---|
caption-side | 1.0 | 8.0 | 1.0 | 1.0 | 4.0 |
Sintaks CSS
caption-side: top|bottom|initial|inherit;
Nilai properti
Value | Description | Play it |
---|---|---|
top | Puts the caption above the table. This is default | |
bottom | Puts the caption below the table | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Halaman Terkait
Tutorial CSS: Tabel CSS
Referensi DOM HTML: properti captionSide