The text-align-all property for CSS specifies the inline alignment of all lines of inline content in the block container, except for last lines overridden by a non-auto value of text-align-last.
object.style.textAlignAll = "value"; <'text-align-all'> = start | end | left | right | center | justify | match-parent start Inline-level content is aligned to the start edge of the line box.
end Inline-level content is aligned to the end edge of the line box.
left Inline-level content is aligned to the line left edge of the line box.
right Inline-level content is aligned to the line right edge of the line box.
center Inline-level content is centered within the line box.
justify Text is justified according to the method specified by the text-justify property, in order to exactly fill the line box.
match-parent Behaves the same as inherit except that an inherited value of start or end is interpreted against the parent's direction value and results in a computed value of either left or right.
<!doctype html>
<html>
<head>
<style>
p
{
text-align-all: end;
}
p:nth-of-type(2)
{
writing-mode: vertical-lr;
}
</style>
</head>
<body>
<p>end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end</p>
<p>end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end end</p>
</body>
</html>
<!doctype html>
<html>
<head>
<style>
p
{
text-align-all: left;
}
p:nth-of-type(2)
{
writing-mode: vertical-lr;
}
</style>
</head>
<body>
<p>left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left</p>
<p>left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left</p>
</body>
</html>
<!doctype html>
<html>
<head>
<style>
p
{
text-align-all: right;
}
p:nth-of-type(2)
{
writing-mode: vertical-lr;
}
</style>
</head>
<body>
<p>right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right</p>
<p>right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right</p>
</body>
</html>
<!doctype html>
<html>
<head>
<style>
p
{
text-align-all: center;
}
p:nth-of-type(2)
{
writing-mode: vertical-lr;
}
</style>
</head>
<body>
<p>center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center</p>
<p>center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center</p>
</body>
</html>
<!doctype html>
<html>
<head>
<style>
p
{
text-align-all: justify;
}
p:nth-of-type(2)
{
writing-mode: vertical-lr;
}
</style>
</head>
<body>
<p>justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify</p>
<p>justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify justify</p>
</body>
</html>
<!doctype html>
<html>
<head>
<style>
p
{
text-align-all: match-parent;
}
p:nth-of-type(2)
{
writing-mode: vertical-lr;
}
</style>
</head>
<body>
<p>match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent</p>
<p>match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent match-parent</p>
</body>
</html>
<!doctype html>
<html>
<head>
<style>
p:nth-of-type(2)
{
writing-mode: vertical-lr;
}
</style>
</head>
<body>
<button>initial</button>
<button>start</button>
<button>end</button>
<button>left</button>
<button>right</button>
<button>center</button>
<button>justify</button>
<button>match-parent</button>
<p>text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all</p>
<p>text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all text-align-all</p>
<script>
function myfunction(myparameter)
{
for(const myp of document.querySelectorAll("p"))
{
myp.style.textAlignAll = myparameter.target.innerHTML;
}
}
for(const mybutton of document.querySelectorAll("button"))
{
mybutton.addEventListener("mouseover", myfunction);
}
</script>
</body>
</html>