[Javascript] Suppressing wrap

Hassan Schroeder hassan at webtuitive.com
Sat May 3 10:57:26 CDT 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 at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.





More information about the Javascript mailing list