Dave819
Dave819

Reputation: 601

CSS the borders of my <TD> and <TH> don't meet

How can I make the border-right of my <td> meet with the border-right of my <th> above it? there is a little gap between them. is there a way to make it extend further down or make the left border of the <td> extend further up?

Upvotes: 0

Views: 246

Answers (3)

BoltClock
BoltClock

Reputation: 723578

To collapse your borders, use the border-collapse property:

border-collapse: collapse;

This gets rid of the spacing between your table borders.

Upvotes: 3

Felix Kling
Felix Kling

Reputation: 816384

You probably have to set border-spacing to 0px in your CSS.

Upvotes: 0

Dave819
Dave819

Reputation: 601

Never mind sorry I found it. its cellspacing=0

Upvotes: 0

Related Questions