Properti tanda baca gantung CSS
Contoh
Tempatkan tanda baca (jika ada) di luar tepi awal baris pertama dalam elemen <p>:
p
{
hanging-punctuation: first;
}
Definisi dan Penggunaan
Properti hanging-punctuation
menentukan apakah tanda baca dapat ditempatkan di luar kotak garis di awal atau di akhir baris teks penuh.
Nilai bawaan: | tidak ada |
---|---|
Diwarisi: | Ya |
Animasi: | tidak. Baca tentang animasi |
Versi: kapan: | CSS3 |
Sintaks JavaScript: | objek .style.hangingPunctuation="pertama" |
Dukungan Peramban
Tidak ada browser utama yang mendukung properti tanda baca gantung.
Property | |||||
---|---|---|---|---|---|
hanging-punctuation | Not supported | Not supported | Not supported | 10+ | Not supported |
Sintaks CSS
hanging-punctuation: none|first|last|allow-end|force-end|initial|inherit;
Nilai properti
Value | Description |
---|---|
none | No punctuation mark may be placed outside the line box at the start or at the end of a full line of text |
first | Punctuation may hang outside the start edge of the first line |
last | Punctuation may hang outside the end edge of the last line |
allow-end | Punctuation may hang outside the end edge of all lines if the punctuation does not otherwise fit prior to justification |
force-end | Punctuation may hang outside the end edge of all lines. If justification is enabled on this line, then it will force the punctuation to hang |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |