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

Re: Validator complains about <nobr>

From: Philip TAYLOR <P.Taylor@Rhul.Ac.Uk>
Date: Tue, 22 Aug 2006 17:49:12 +0100
Message-ID: <44EB3588.1040905@Rhul.Ac.Uk>
To: "Jukka K. Korpela" <jkorpela@cs.tut.fi>
CC: OOzy Pal <oozypal@gmail.com>, www-validator@w3.org



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 GMT

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