Correct text alignment?

I am trying to provide an example that is experimenting with different alignments as a demonstration. It's easy to left, center, right, align and center to left, as shown in my demo:

a

You can see this example here in JSBin. How can I get right-aligned text without punctuation? (Note the period to the left of the last line of center-aligned text.)

+3


source to share


1 answer


This should work in IE (only):

text-align: justify;
text-align-last: right;

      



It doesn't seem like there is a great cross-browser solution, but it might help:

Align the last line of a div?

+4


source







All Articles