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

P Chen info at designbychen.com
Wed Feb 25 14:33:38 CST 2009

Thank you Sarah. Seems to work fine with FF, but nothing on IE7. Any other


-----Original Message-----
From: Sarah Adams [mailto:sarahwbs at gmail.com] 
Sent: Wednesday, February 25, 2009 12:16 PM
To: info at designbychen.com; thelist at lists.evolt.org
Subject: Re: [thelist] Using CSS to disable table tag's cellspacing

> My client has a webpage that I am not allowed to edit, yet contains a
'cellspacing=2' attribute in a table tag that needs to be removed.
> I've looked at using expressions, but there doesn't seem to be a CSS
equivalent that I could use to 'inherit' the attribute. 
> 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.
> Unless someone has another idea, I'm thinking I've possibly hit a dead end
on this one?

Try this:

table {
  border-collapse: collapse;

sarah adams
my son: http://clarkeadams.com
twitter: http://twitter.com/sarahwbs
portfolio: http://sarah.designshift.com
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.237 / Virus Database: 270.11.3/1970 - Release Date: 02/25/09

More information about the thelist mailing list