javascript - Make the previous line of the text shorter than the next -


is there way make previous line of text shorter next if text’s length unknown? somethig this:

lorem ipsum dolor sit amet, consectetur adipiscing et libero posuere pellentesque. vivamus quis nulla justo. vel lacinia sapien scelerisque eget. vivamus ut velit elit. donec  

there paragraph in html.

i have tried text-indent or :first-line or playing around padding , width of paragraph none of them working (as expected think...). have tried somehow calculate width of line using calculating text width no result (i'm not in jquery...).

i can’t add markup on html (well, not directly, can add scripts if necessary).
preferably css can add jquery too.

please help.

yes, can use selector p , attribute section of there sentence want paragraph end , use line-height adjust leading instance http://jsfiddle.net/ammyr/4/

    p {         font:14px nor futura, sans-serif;         line-height:20px;         color:#333;     }      <p>this first sentence. <br>this very, very, very, long sentence <br>this sentence longer last, don't know why.</p> 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -