3 ms·
The way I see it, the alternatives to forcibly wrapping are: * Overflow that extends into the page margins (looks ugly) and either forces the browser to show a
by barrkel 15y ago
The way I see it, the alternatives to forcibly wrapping are:
* Overflow that extends into the page margins (looks ugly) and either forces the browser to show a scrollbar, or forces the user to resize the window to view the full text (which may not even be possible).
* Overflow that is contained within the margins, and can only be read by use of nested scrollbars (I hate those, don't you?) or again, by resizing the window to widen the content column width (again, not always possible).
Of all the options, I think forced wrapping is the most visually pleasing. Whether that can be done with CSS I don't know. I do know that introducing spaces will do it. Other techniques may involve e.g. Unicode soft hyphen, see e.g. http://blogs.msdn.com/b/oldnewthing/archive/2011/12/13/10246957.aspx http://blogs.msdn.com/b/oldnewthing/archive/2011/12/13/10246...
Of course, another way to do it is to simply reject the input. That's the way Slashdot does it.
- zem 15y ago> Of course, another way to do it is to simply reject the input. That's the way Slashdot does it. huh. i'm pretty sure i remembered slashdot inserting spaces to break up pagewidening text, but it's been a good many years so i could be wrong.
- barrkel 15y agoI thought so too. I think that's where I got the idea from; that's why I went off and tested it, but it turns out that's not what they do anymore.