I recently had a project where the client wanted the text justified. Browsers do a bad job of justifying text, but under controled circumstances it’s not too bad. IE is actually better at handling justified text because because you can control how the text is justified:
text-justify: [auto | distribute | inter-word | newspaper]
And you can control justification on the last line of text:
text-align-last: [auto | center | inherit | justify | left | right]
For this project the last line of text needed to be justified, which wasn’t happening in Firefox and Safari. The solution was to add addition content using CSS :after psuedo-selector:
p:after
{
content: " ____________________________________________________________";
line-height: 0;
visibility: hidden
}
Now the last line appears justified in all browsers.
(Updated 8/28/08 to change color: #ffffff to visibility: hidden)