6

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>
Nickolay
  • 31,095
  • 13
  • 107
  • 185
user31782
  • 7,087
  • 14
  • 68
  • 143
  • 2
    Exactly, fails everywhere .... https://www.w3.org/International/tests/repo/results/text-align#justifyall – Asons Apr 15 '17 at 14:31
  • 1
    Maybe this is a solution: http://stackoverflow.com/questions/4771304/justify-the-last-line-of-a-div – Asons Apr 15 '17 at 14:33

1 Answers1

6

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

Jason Y
  • 831
  • 5
  • 10