I have a div with a few words of text in it, which I want to extend as far as the div itself.
In other words, the word-spacing should automatically stretch until the last word reaches the edge of the div.
By reading about text-align: justify
, I assumed that's exactly what it was supposed to do. But either I'm mistaken, or I'm doing something wrong: http://jsfiddle.net/rLnrtu0x/1/
To illustrate:
Right now, this is the result:
|text text text text |
But I am trying to achieve something like this:
|text text text text|
Am I doing something wrong? Is there another method of accomplishing this?