Wrap Text with Pre

there are a way to wrap text in a certain width , and automatically goes down.

note :word-break:break all -> only works on IE.

with out table cell wrap your text with pre.. and you still can have the style also not like those text area.

but beware of the  /t character in your text , it will indent very deep .

So the solution is using pre abut eliminate the tab character. there you have a wrap text

and then adjust the over flow text container/div height . with javascript  .scrollheight

 

Share this post: | | | |
Published Sunday, July 12, 2009 10:23 AM by cipto
Filed under:

Comments

No Comments