ParisNakitaKejser
ParisNakitaKejser

Reputation: 14949

CSS table cellpadding and cellspacing?

Possible Duplicate:

How to set cellpadding & cellspacing in CSS?

i have a little problem, i don't know how i can make my CSS style to remove cellpadding and cellspacing.

i hobe i can be helpet.

Upvotes: 24

Views: 26677

Answers (2)

Adam Chalcraft
Adam Chalcraft

Reputation: 213

The accepted answer of border-collapse:collapse; is not the right way to get rid of cellspacing. It works for simple solid border styles, but it is easily seen to be wrong if td{border} is set to something complicated, like inset or outset. The right answer is border-spacing:0;

Upvotes: 1

chrissr
chrissr

Reputation: 9921

table {  
    border-collapse: collapse;
}
th, td {
    padding: 0;
}

Upvotes: 48

Related Questions