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,411
  • 1
  • 11
  • 25

2 Answers2

1

TRY THIS:

Table 
{
  border_collapse:
    seperate;
  table {padding: 0}
  }
Rajesh kumar
  • 21
  • 1
  • 2
  • 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
0

Try this:

table {border-collapse: collapse}
table td {padding: 0}
Văn Quyết
  • 2,384
  • 14
  • 29