/    Sign up×
Community /Pin to ProfileBookmark

Table element gaps

Hi everyone,

I hope someone can help me with something that I’m finding pretty frustrating 😡

Here’s a draft of a page I’m working on:
[url]http://www.artisswebdesign.co.uk/copyplus[/url]

You’ll notice the menu, which has a border around it and a vertical line splitting each menu section, is slightly out of alignment in comparison to the tables above and below it. Yet they’re all the same size. I’ve been told that this is because of the “border-collapse” element I’m using in my CSS.

Removing this does, indeed, correct this alignment. But it also creates an ugly gap between the TD and TABLE elements of the menu, meaning that the vertical lines, which are part of the TD element are standing away from the TABLE border.

Here’s a picture of what I mean…
[url]http://img86.imageshack.us/my.php?image=banner1cm.jpg[/url]

My CSS has a generic TABLE, TR and TD definition which sets all the borders, etc, to a zero size. The specific TABLE and TD definitions for this menu don’t change this. So why the gap? Can anybody work out what I’m doing wrong?

Many thanks
David.

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@FangMar 14.2006 — Use [I]cellspacing[/I] instead of [I]border-collapse[/I]:<table class="menu" width="100%" [COLOR=Green]cellspacing="0"[/COLOR]>
×

Success!

Help @dartiss 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...