Re: NOBR in CSS?

by "Steve Mount" <steve(at)saltyrain.com>

 Date:  Mon, 7 Oct 2002 13:46:15 -0400
 To:  "Brian V Bonini" <b-bonini(at)cox.net>,
<hwg-techniques(at)hwg.org>
 References:  cox
  todo: View Thread, Original
Thanks to all who replied - white-space is in my reference, I just never saw
it, as I was looking for other keywords.

I'll be going with the CSS white-space: nowrap method, as I am assured my
audience is all MSIE 5 or higher.  I tried the &nbsp; method at first, but
it added a lot of code, and the browser still wrapped on the - character
(probably could have used an entity for that, too, but the CSS will fix it
all).

-------------------------------------------------------------
Steve Mount, Software Engineer            steve(at)saltyrain.com
Home Site                            http://www.saltyrain.com
US Constitution Online          http://www.usconstitution.net

----- Original Message -----
From: "Brian V Bonini" <b-bonini(at)cox.net>
To: <hwg-techniques(at)hwg.org>
Sent: Monday, October 07, 2002 12:38 PM
Subject: RE: NOBR in CSS?


> As you are aware nobr is proprietary.
>
> A few options:
> - nowrap attribute applied to a td or th element (this is deprecated)
> - &nbsp; (can be pretty ugly but IS an "any-browser" solution)
> - white-space (CSS)
>
> The last one is the CSS property I think your looking for however I do not
> know how well it is supported. You may have better luck setting the width
> property of the containing block level element to a width that prevents
> wrapping at points where you do not want it to.
>
> -Brian
> *************
>
> > -----Original Message-----
> > From: owner-hwg-techniques(at)hwg.org
> > [mailto:owner-hwg-techniques(at)hwg.org]On Behalf Of Steve Mount
> > Sent: Monday, October 07, 2002 10:35 AM
> > To: hwg-techniques(at)hwg.org
> > Subject: NOBR in CSS?
> >
> >
> > Is anyone aware of a CSS attribute that allows one to specify the
> > equivalent
> > of the NOBR tag in HTML?  I'd much prefer to set this in a style
> > than to use
> > an HTML tag (especially since it is not standard).  Thanks!
> >
> > -------------------------------------------------------------
> > Steve Mount, Software Engineer            steve(at)saltyrain.com
> > Home Site                            http://www.saltyrain.com
> > US Constitution Online          http://www.usconstitution.net
> >
> >
>

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

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.