RE: What to use instead of NOBR

by Andrew McFarland <aamcf(at)aamcf.co.uk>

 Date:  Thu, 21 Feb 2002 17:30:04 +0000
 To:  <hwg-techniques(at)hwg.org>
 In-Reply-To:  pdc
  todo: View Thread, Original
At 14:03 21/02/02 +0100, Klaas De Waele wrote:
>Now what if one would apply a style sheet to the <pre> tag?

See http://aamcf.co.uk/temp/pre

It works, but it is a hack. At least I think its a hack. It doesn't feel 
like the right thing to do with a pre. Although it might be.

Anyway, the `best' way to do this is with CSS, setting white-space: pre for 
the element where you want white space preserved. Amazingly, this works in 
NS4 as well as Mozilla and IE6.

Andrew

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA