Spencer
Spencer

Reputation: 22370

How do I reduce the gaps between cells in HTML tables?

I am new to coding and I am using a table with a border of 0 to format my page. How do I make the gaps between cells smaller.

Upvotes: 0

Views: 863

Answers (2)

escargot agile
escargot agile

Reputation: 22379

Try cellspacing and cellpadding http://www.htmlcodetutorial.com/tables/index_famsupp_29.html

Upvotes: -1

Quentin
Quentin

Reputation: 943108

With the border-spacing property (or the border-collapse property if you want to remove them entirely).

Note also that cells may have padding, that you might wish to set to zero (as space between the content and edge of a cell can look like space between cells if there isn't a border present).

Upvotes: 3

Related Questions