So I want to have a paragraph that could be one or more lines long that is on the right side of the page but is left aligned.
Example:
| Example text to show |
| where I want the | <-- Right side of page
| paragraph to be. |
So I added a left margin and told the text to align to the left:
<p style="text-align: left; margin-left:>Text</p>
This works for long paragraphs; however, if the paragraph is less that a line long, it looks like this:
| Short Text |
| | <-- Right side of page
| |
instead of:
| Short Text|
| | <-- Right side of page
| |
I then tried aligning the paragraph to the right and aligning the last line to the left:
<p style="text-align: right;text-align-last: left; margin-left: 200px">Text</p>
However, that resulted in text over-hanging:
| Example text to show|
| where I want the| <-- Right side of page
| paragraph to be. |
Is there any way I can get the paragraph to be on the right of the page with all the lines lined up like in the first example, but not so that a short line will not be left in the middle of the page?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…