Nik
Nik

Reputation: 334

How to remove the whitespace between '<td>' border tags

The first table is what I am trying to recreate and the second table is what I get.

I tried to create a table and populate the <td> tags with labels. After making the borders dark there are these whitespace between cells that I do not need. Is there any other method that I should try?

any suggestions on how to get results close to the second table? It is not hard-coded with values but rather filled in with asp labels.

intended result

Upvotes: 0

Views: 121

Answers (1)

John Conde
John Conde

Reputation: 219864

Use border-collapse:

table {
    border-collapse: collapse;
}

See the examples provided here.

Upvotes: 4

Related Questions