Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Suppressing wrap


  • From: hassan at webtuitive.com (Hassan Schroeder)
  • Subject: [Javascript] Suppressing wrap
  • Date: Sat May 3 10:57:37 2003

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@xxxxxxxxxxxxxx
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.