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
Received on Tuesday, 22 August 2006 16:49:42 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:49 UTC