/    Sign up×
Community /Pin to ProfileBookmark

IE Tables using CSS

Please, no bashing. Please just answer the question straight and to the point. Thanks.

I’ve searched and experimented a bit, but cannot find a solution that allows me to eliminate the TABLE HTML attribute [b]cellspacing[/b] in favor of a CSS setting that works in IE6. I’ve seen the references to [b]border-spacing[/b] but this does not seem to work in IE6. Is that correct? What is the solution for IE6? Thanks.

Cheers.

to post a comment
CSS

7 Comments(s)

Copy linkTweet thisAlerts:
@toicontienFeb 16.2006 — For all browsers, cellspacing is the padding on the TD tag. That should work for IE-Win too.
Copy linkTweet thisAlerts:
@phpnoviceauthorFeb 16.2006 — Not quite. padding is [U]inside[/U] the cell (and, yes, this works). cellspacing is [U]outside[/U] the cell. margin would be more the equivalent of what I'm looking for -- but margin doesn't seen to work on cells, either (at least, not in IE).
Copy linkTweet thisAlerts:
@toicontienFeb 16.2006 — GAH! I completely mis-read that!! No. There is no way to control cell[b]spacing[/b] (emphasis added for my benefit ? ) with CSS.
Copy linkTweet thisAlerts:
@NeczyFeb 16.2006 — [font=trebuchet ms]Cellspacing is the correct thing to use, there is no CSS that can replace it.[/font]
Copy linkTweet thisAlerts:
@ray326Feb 16.2006 — Actually that's handled by border-spacing but IE doesn't under stand that. Here is a demonstration for use with web browsers.

table { border: 1px solid gray; border-collapse:separate; border-spacing: 5px 10px; }

td { border: 1px solid black; padding: 1em; }
Copy linkTweet thisAlerts:
@phpnoviceauthorFeb 16.2006 — So, does that mean there is no CSS solution for IE6?
Copy linkTweet thisAlerts:
@ray326Feb 17.2006 — Yep. Not an unusual situation.
×

Success!

Help @phpnovice spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...