I'm trying to come up with an example that experiments with different alignments as a demonstration. It's easy to left, center, right, justify, and center-left-justify text, as seen in my demonstration:
You can see this example here on JSBin. How can I get right-justified text without the punctuation getting messed up? (Notice the period to the left on the last line of the center-right-justified text.)
trevorp
This should work in IE (only):
text-align: justify;
text-align-last: right;
It doesn't look like there is a great cross-browser solution, but this might help:
来源:https://stackoverflow.com/questions/14654106/right-justifying-text