Vlastnost stylu textuAlignLast
Příklad
Zarovnejte poslední řádek textu doprava:
document.getElementById("myDIV").style.textAlignLast = "right";
Definice a použití
Vlastnost textAlignLast určuje, jak zarovnat poslední řádek textu.
Poznámka: Vlastnost textAlignLast bude fungovat pouze pro prvky s vlastností text-align nastavenou na "justify".
Podpora prohlížeče
Property | |||||
---|---|---|---|---|---|
textAlignLast | Yes | Yes | Not supported Use MozTextAlignLast |
Yes | Yes |
Poznámka: Hodnoty "start" a "end" nejsou v Internet Exploreru podporovány.
Syntax
Vraťte vlastnost textAlignLast:
object.style.textAlignLast
Nastavte vlastnost textAlignLast:
object.style.textAlignLast = "auto|left|right|center|justify|start|end|initial|inherit"
Hodnoty vlastností
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 |
Technické údaje
Výchozí hodnota: | auto |
---|---|
Návratová hodnota: | Řetězec představující vlastnost text-align-last prvku |
Verze CSS | CSS3 |
Související stránky
CSS reference: vlastnost text-align-last
❮ Objekt stylu