Topic: how to convert table cellspacing attribute? |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: sj, ca, usa |
![]() ![]() ![]() ![]() how do you convert this to pure CSS? |
Maniac (V) Inmate From: out of a sleepy funk |
![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() Yes, JK is right. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() ![]() ![]() ![]() 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: |
![]() ![]() ![]() ![]() Hello everyone, |
Paranoid (IV) Inmate From: Florida |
![]() ![]() ![]() ![]() The CSS to do it would be... code: table { border-spacing: 0; }
code: <table cellspacing="0">
|
Bipolar (III) Inmate From: London |
![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() You may probably need to add the attributes to the td cells as well |