L
L
LittleMeN2011-09-10 11:52:20
css
LittleMeN, 2011-09-10 11:52:20

CSS white-space:pre-wrap - how to nail the wrapped line to the right?

Good day
Block <pre></pre>can set a wonderful CSS property white-space:pre-wrap, but for me, for complete happiness, there is not enough alignment of the transferred part of the line on the starboard side ... That
is, I get
ccb34e91.png
it like this:
b294afcc.png

<div style='float:right; clear:right;'></div>
.
The question is how do I achieve automatic alignment to the right side of the wrapped part of the line?
... of course I would like to use CSS, but I will be happy if it is possible at least with jQuery ...
Many thanks to those who responded !!!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
ttas, 2011-09-10
@ttas

I wrote a jQuery plugin especially for you: www.filedropper.com/pretar Tested in FF3. So I don't claim to be cross-browser compatible. I think it still needs to be improved. If you have any questions, please contact.
PS I apologize in advance if the hosting is bad - I did not know where to put it.

T
tick, 2011-09-10
@tick

spaces?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question