Topic: how to convert table cellspacing attribute? |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: sj, ca, usa |
posted 03-12-2003 00:37
how do you convert this to pure CSS? |
Maniac (V) Inmate From: out of a sleepy funk |
posted 03-12-2003 01:45
mebbe try defining a 0px margin for .td as well? Good question as there's no real cellspacing attribute. Logic would dictate what I said with the TD but that'd be my logic and sometimes it's flawed. That means it will most likely work in IE but nothing else |
Maniac (V) Inmate From: under the bed |
posted 03-12-2003 02:11
Yes, JK is right. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 03-12-2003 04:26
I've found that setting margins, borders, and padding to TD's doesn't actually solve the problem, unless I *also* add the following rule to the Table's CSS: |
Neurotic (0) Inmate Newly admitted From: |
posted 04-28-2005 09:11
Hello everyone, |
Paranoid (IV) Inmate From: Florida |
posted 04-28-2005 10:09
The CSS to do it would be... code: table { border-spacing: 0; }
code: <table cellspacing="0">
|
Bipolar (III) Inmate From: London |
posted 04-28-2005 10:37
I wouldn't say that CSS support for tables is perfect and would be inclined to just use cellspacing="0" border="0" and cellpadding="0", it's no big deal. |
Bipolar (III) Inmate From: 1393 |
posted 05-02-2005 05:06
I agree with blaise... I always throw in cellspacing="0" and cellpadding="0" and control everything else with css. I usually use something like table.className as it seems to work better when defining width's and what not. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 05-02-2005 05:11
You may probably need to add the attributes to the td cells as well |