[thelist] Using CSS to disable table tag's cellspacing attribute

Lee Kowalkowski lee.kowalkowski at googlemail.com
Thu Feb 26 16:08:12 CST 2009


2009/2/25 P Chen <info at designbychen.com>:
> I've looked at using expressions, but there doesn't seem to be a CSS equivalent that I could use to 'inherit' the attribute.

As Sarah said, it's border-collapse, but this only works in IE7 if
cellspacing has not been specified.
(http://www.quirksmode.org/css/tables.html)

> I've also tried using some javascript to remove it, but couldn't get it to work, and I guess it's less than ideal in terms of useability.

That does work for me.  What did you try?  I have this:

myTable.cellSpacing = 0;

-- 
Lee



More information about the thelist mailing list