Stijl textAlignLaatste eigenschap
Voorbeeld
Lijn de laatste regel van een pragraph naar rechts uit:
document.getElementById("myDIV").style.textAlignLast = "right";
Definitie en gebruik
De eigenschap textAlignLast geeft aan hoe de laatste regel van een tekst moet worden uitgelijnd.
Opmerking: de eigenschap textAlignLast werkt alleen voor elementen waarvan de eigenschap text-align is ingesteld op "justify".
Browserondersteuning
Property | |||||
---|---|---|---|---|---|
textAlignLast | Yes | Yes | Not supported Use MozTextAlignLast |
Yes | Yes |
Let op: De waarden "start" en "end" worden niet ondersteund in Internet Explorer.
Syntaxis
Retourneer de eigenschap textAlignLast:
object.style.textAlignLast
Stel de eigenschap textAlignLast in:
object.style.textAlignLast = "auto|left|right|center|justify|start|end|initial|inherit"
Eigendomswaarden
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 |
Technische details
Standaardwaarde: | auto |
---|---|
Winstwaarde: | Een tekenreeks, die de eigenschap text-align-last van een element voorstelt |
CSS-versie | CSS3 |
Gerelateerde pagina's
CSS-referentie: eigenschap text-align-last
❮ Stijlobject