24

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.

Community
  • 1
  • 1
ParisNakitaKejser
  • 12,112
  • 9
  • 46
  • 66
  • 1
    possible duplicate of [How to set cellpadding and cellspacing in CSS?](http://stackoverflow.com/questions/339923/how-to-set-cellpadding-and-cellspacing-in-css) – user Mar 07 '14 at 20:40

2 Answers2

48
table {  
    border-collapse: collapse;
}
th, td {
    padding: 0;
}
chrissr
  • 9,861
  • 2
  • 29
  • 30
1

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;