Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Replacing Cellpadding/Cellspacing



11:30 pm on Sep 5, 2006 (gmt 0)

10+ Year Member

I'm trying to find the equivalent CSS for equivalent of <table cellspacing="0" cellpadding="0" border="0"> and I got something that works beautifully in FF:

table {border-spacing:0px;
border-collapse: separate;}

td {padding:0px;
border:0px none;}

However, I still geting padding/spacing when viewing it in IE. Any cool work arounds? I'd hate to have to revert back to the cellspacing & cellpadding. :(


11:34 pm on Sep 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Try this. You were actually using the wrong value for 'border-collapse':

table {
border:1px solid #000;

td {
border:1px solid #000;

I just put the borders in there so you could see it working--just take 'em out. "border-spacing" is not, if I remember correctly, supported by IE6.



12:05 am on Sep 6, 2006 (gmt 0)

10+ Year Member

Major duh moment for me! I think that separate got left in there from playing around and I sort of new that collapse was what I needed. Thanks for pointing out the error of my ways!

Featured Threads

Hot Threads This Week

Hot Threads This Month