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.

1
  • 1
    First - provide the code. Second - did you try to reduce the padding? Commented Oct 1, 2016 at 11:31

2 Answers 2

1

TRY THIS:

Table 
{
  border_collapse:
    seperate;
  table {padding: 0}
  }

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

1 Comment

What's the point of a live demo consisting of CSS without any HTML to apply it to? (The CSS is invalid too).
0

Try this:

table {border-collapse: collapse}
table td {padding: 0}

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.