The text-justify CSS property offers a fine level of justification control over the enclosed content, allowing for a variety of sophisticated justification models used in different language writing systems.
Overview tableauto
textJustify
text-justify: auto
text-justify: distribute
text-justify: inter-cluster
text-justify: inter-ideograph
text-justify: inter-word
text-justify: kashida
text-justify: none
The first paragraph is using inter-word
as a value of text-justify property, in English. The second one is using distribute
in Japanese paragraph.
<p class="english">This is a simple paragraph with a altered text-justify value by inter-word.</p>
<p class="japanese">日本語では、どのように表示されるかを見てみましょう。日本語の場合にはdistributeが使用される場合があります。</p>
p {
width: 300px;
text-align: justify;
text-align-last: justify;
}
p.english {
text-justify: inter-word;
}
p.japanese {
text-justify: distribute;
}
Related specifications
CSSStyleDeclarationCSSStyleDeclaration
currentStylecurrentStyle
runtimeStyleruntimeStyle
stylestyle
CSSStyleDeclarationCSSStyleDeclaration
currentStylecurrentStyle
runtimeStyleruntimeStyle
stylestyle
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4