2

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

0

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.