News for hackers. Stuff that matters.
Re:Can You Learn To Code In One Day? We Sent A Non-Nerd To F... by barrkel on Tuesday December 20, 2011 @01:44AM (#3372564)
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/10246...

Of course, another way to do it is to simply reject the input. That's the way Slashdot does it.

Re:Can You Learn To Code In One Day? We Sent A Non-Nerd To F... by zem on Tuesday December 20, 2011 @05:06AM (#3372890)
> 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.

Re:Can You Learn To Code In One Day? We Sent A Non-Nerd To F... by barrkel on Tuesday December 20, 2011 @09:31AM (#3373557)
I 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.