2

In a table how can you disable the padding between tr's and td's? I have tried setting padding to 0.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
gladius323
  • 29
  • 2

1 Answers1

0

You need to set the border-collapse and border-spacing. Here's a jsfiddle that has an example.

include the following css in your code, or put it in a class and assign that class to your table

table {
    border-collapse: collapse;
    border-spacing: 0; 
}

Here's a good writeup of border-collapse

Here's a writeup of border-spacing

trmiller
  • 183
  • 5