NSU
NSU

Reputation: 329

Justify text with final line left-aligned

I've got a client who wants a paragraph of text to appear justified and rather than having the last line flush left, they want it centered. I haven't come up with a way to do this yet that will properly scale if the page is resized by the user. Am I going to have to resort to some kind of javascript hack? I just feel like this is the sort of problem that I should be able to solve with CSS alone.

Upvotes: 1

Views: 1030

Answers (1)

Jonathan Wilson
Jonathan Wilson

Reputation: 4295

CSS3 has a text-align-last property that you might find useful. On the other hand, using a different text-justify method might be preferred.

Upvotes: 2

Related Questions