Scripsit Ben C:
>><p>VeryVeryLongVeryVeryLongVeryVeryLongVeryVeryL ongVeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLon gVeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLongV eryVeryLongVeryVeryLongVeryVeryLongVeryVeryLongVer yVeryLongVeryVeryLong</
>> p>
This first question is: why would anyone write such a monstrosity? The
second question is: if you would like it to be broken by a browser,
should the browser read your mind to decide whether it should hyphenate
or just break it?
> The only way to make it wrap in browsers is to put zero-width breaking
> spaces in.
No it isn't, as you describe later. Besides, it is up to browsers to
decide whether they automatically hyphenate words. Currently they have
decided not to. There is nothing in CSS as currently defined to suggest
either hyphenation or breaking strings without hyphenation-
> This should work:
>
> VeryVeryLongVeryLongword
Should it? By which specification? Beware that HTML specifications do
not require Unicode conformance or support to particular Unicode
characters.
> It's non-standard but some browsers may support <wbr> that don't
> support I'm not sure.
I am. The <wbr> markup is far better supported and it is not know to
cause any trouble, unlike which may in fact be rendered using a
glyph for unsupported characters.
More info:
http://www.cs.tut.fi/~jkorpela/html/nobr.html#suggest
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/