Is there any way to make the previous line of the text always shorter than the next if the text’s length is unknown? Somethig like 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 is only a paragraph in HTML.
I have tried to do this with text-indent or :first-line or playing around with padding and width of a paragraph but none of them is working (as expected I think...). Also have tried to somehow calculate the width of line using Calculating text width but also with no result (I'm not very good in jquery...).
I can’t add extra markup on the html (well, not directly, I can add it with scripts if necessary).
Preferably with css but I can add jquery too.
Please help.
` tag with jQuery after a certain number of characters (count the characters, then after X number, insert the tag). Then simply add 10 (for example) characters to the counter for each iteration? – robooneus Aug 26 '13 at 08:45