Re: Validator complains about <nobr>

Jukka K. Korpela wrote:

> It would be a different matter if the text contains [...]
 > a hyphen (e.g., <nobr>foo-bar</nobr> is really the only practical way to
 > prevent browser from breaking the text into "foo-" on one line and "bar"
 > on the next one.

Can't this be accomplished using CSS [1], as in

	<span style="White-space:nowrap">foo-bar</span>

?

Philip Taylor
--------
http://htmlhelp.com/reference/css/classification/white-space.html

Received on Tuesday, 22 August 2006 16:49:42 UTC