CSS/HTML - wrapped long string inside a textarea?

What you want is default and should work properly unless you specified the wrap=on or wrap=true (not sure which but think the first) attribute! What you need to force it is wrap=hard you can however specify predetermined breaking points using the character somewhere in the word. It won't be visible, but break there.

You can also have a look a some function like php.net/manual/en/function.wordwrap.php you can also have a look at the following css settings.

Up vote 0 down vote favorite share g+ share fb share tw.

(to avoid the horizontal scrollbar) Note that I have a very long string without any spaces (a encoded text), and css word-wrap properties don't seem to work on it... html css textarea word-wrap link|improve this question asked Sep 22 '10 at 21:04Alex2,70411576 98% accept rate.

1 You can apply html's soft-hyphen (­ if I recall correctly) to the string, this allows the word to be broken and hyphenated at that point, but which isn't visible unless necessary. – David Thomas Sep 22 '10 at 21:09 1 You shouldn't normally get a horizontal scrollbar at all. Opera is the only browser that does that by default.

– bobince Sep 22 '10 at 21:27 you're right, I was using Opera... – Alex Sep 22 '10 at 21:35.

What you want is default and should work properly unless you specified the wrap=on or wrap=true (not sure which but think the first) attribute! What you need to force it is wrap=hard you can however specify predetermined breaking points using the ­ character somewhere in the word. It won't be visible, but break there.

You can also have a look a some function like php.net/manual/en/function.wordwrap.php you can also have a look at the following css settings: overflow: scroll; overflow-y: scroll; overflow-x: hidden; overflow:-moz-scrollbars-vertical.

1 It's wrap="off" that provokes the scrollbar in Firefox, IE and WebKit. This is documented at MSDN but is not a standard value for wrap in HTML5. – bobince Sep 22 '10 at 21:30 1 is wrap even a valid attribute any more?

The W3 don't seem to think it exists, and even the non-affiliated, pause for shudder, W3schools don't mention it any more. Ah, oops. Html 5...sorry.

I'll just get my coat... =/ – David Thomas Sep 22 '10 at 21:35 1 its not :) his problem was opera (see above) – Joe Hopfgartner Sep 22 '10 at 21:41.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions