[Javascript] Suppressing wrap

David T. Lovering dlovering at gazos.com
Sat May 3 12:06:50 CDT 2003


Indeed it does.  I'd tried using the full style declaration

  myTd.style.whitespace = "nowrap";

in one of my earlier test permutations, but obviously the case of "Space" is critical (as are most of the CSS attributes).  My mistake.  Thanks for the tip!

-- Dave Lovering

Hassan Schroeder wrote:
> 
> David T. Lovering wrote:
> 
> > Of particular concern is "nowrap".
> 
> > I've tried the obvious CSS equivalent as follows:
> >
> >       var myTd = createElement("TD");
> >     myTd.style = "wrap: 'off'";
> 
> er, I'd think this would be more obvious:
> 
>         myTd.style.whiteSpace = "nowrap";
> 
> // and it works :-)
> 
> HTH!
> --
> Hassan Schroeder ----------------------------- hassan at webtuitive.com
> Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
> 
>                            dream.  code.
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript


More information about the Javascript mailing list