I have a paragraph of text that is justified. At a certain point in the text, I need the next line to begin with a certain word, so I need to break the text, but I still want the "broken" line justified (stretched to the end of the line), even if that mean large ugly spaces between words.
Is there any way to accomplish this?
I am using CSS 2.0 (no access to 3.0), and this only needs to work in Internet Explorer 7+.
HTML:
<p>
This is the paragraph that I want to justify. I want a line
break after the period, but I still want this line justified.<br />
Is there any way to do that?
</p>
CSS:
p { text-align:justify; width:200px; }
JSFiddle: Justified text
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…