Gaya teksAlignLast Property
Contoh
Sejajarkan baris terakhir pragraf ke kanan:
document.getElementById("myDIV").style.textAlignLast = "right";
Definisi dan Penggunaan
Properti textAlignLast menentukan cara menyelaraskan baris terakhir teks.
Catatan: Properti textAlignLast hanya akan berfungsi untuk elemen dengan properti text-align disetel ke "justify".
Dukungan Peramban
Property | |||||
---|---|---|---|---|---|
textAlignLast | Yes | Yes | Not supported Use MozTextAlignLast |
Yes | Yes |
Catatan: Nilai "mulai" dan "akhir" tidak didukung di Internet Explorer.
Sintaksis
Kembalikan properti textAlignLast:
object.style.textAlignLast
Setel properti textAlignLast:
object.style.textAlignLast = "auto|left|right|center|justify|start|end|initial|inherit"
Nilai properti
Value | Description |
---|---|
auto | Default value. The last line is justified and aligned left |
left | The last line is aligned to the left |
right | The last line is aligned to the right |
center | The last line is center-aligned |
justify | The last line is justified as the rest of the lines |
start | The last line is aligned at the beginning of the line (left if the text-direction is left-to-right, and right is the text-direction is right-to-left) |
end | The last line is aligned at the end of the line (right if the text-direction is left-to-right, and left is the text-direction is right-to-left) |
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: | mobil |
---|---|
Nilai Kembali: | Sebuah String, mewakili properti text-align-last dari suatu elemen |
Versi CSS | CSS3 |
Halaman Terkait
Referensi CSS: properti text-align-last
Objek Gaya