Re: Validator complains about <nobr>

On Tue, 22 Aug 2006, Philip TAYLOR wrote:

> 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>

Right. (With the usual CSS caveats.) I confused this with the opposite 
problem (of suggesting allowed line break points).

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

Received on Tuesday, 22 August 2006 17:19:03 UTC