4

I am using data table for displaying data from the database. There is some space between two columns of the data table. How to reduce the space between them. I tried cellspacing but it is deprecated in html5. Is there any possible way to do this.

Kannan K
  • 4,231
  • 1
  • 8
  • 25

2 Answers2

0

Try this:

table {border-collapse: collapse}
table td {padding: 0}
Văn Quyết
  • 2,028
  • 12
  • 28
0

TRY THIS:

Table 
{
  border_collapse:
    seperate;
  table {padding: 0}
  }
  • 2
    What's the point of a live demo consisting of CSS without any HTML to apply it to? (The CSS is invalid too). – Quentin Oct 01 '16 at 14:55