W3C home > Mailing lists > Public > www-validator@w3.org > August 2006

Re: Validator complains about <nobr>

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Tue, 22 Aug 2006 20:18:47 +0300 (EEST)
To: Philip TAYLOR <P.Taylor@Rhul.Ac.Uk>
cc: OOzy Pal <oozypal@gmail.com>, www-validator@w3.org
Message-ID: <Pine.GSO.4.64.0608222017190.18786@korppi.cs.tut.fi>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:22 GMT