Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is text-align: justify-all?

Tags:

html

css

w3c

In css what does the property text-align: justify-all do? On MDN they suggest it justifies the content of last line too. But I see nothing happening in my chrome browser:

<p style="text-align: justify-all">
one two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four fiveone two three four five
</p>
like image 456
user31782 Avatar asked Apr 15 '17 14:04

user31782


People also ask

How do you justify all text?

Align or justify using the Paragraph dialog box If you would like to select all paragraphs, press Ctrl + A. Right-click and select Paragraph. The Paragraph dialog box appears. From the Alignment drop-down menu, select Left, Center, Right or Justify.

What does text fully justified mean?

With full justification, text is flush with both the right and left margins (for left-right and right-left scripts). Fully justified text has adjusted spacing between words and sometimes adjusted space between letters.


1 Answers

Checking the W3C spec, it doesn't appear to be supported by any major browser https://www.w3.org/International/tests/repo/results/text-align.

You can try text-align-last. It does have browser support, but it's not great http://caniuse.com/#feat=css-text-align-last

like image 84
Jason Y Avatar answered Nov 03 '22 00:11

Jason Y