0

I have around 6 tables those padding or width is different.When I was not using data tables, their padding and width were set inline. Now the inline doesn't work.

Datatables: http://datatables.net/index

What should I do now?

I simply need to be able to add some padding and width Inline to data-tables or may be I could give those tables a class name and then give them padding and width.

The issue is that inline styles doesn't work with data-tables.

Using this code:

            <table  class="datatable display " border="0" cellpadding="0" cellspacing="1"style="width: 87%;margin: -1px 0 14px 27px;">
                <thead>
                    <tr>
                    <th>Name</th>
                    <th>DOB</th>
                    <th>Age</th>
                    <th>Sex</th>
                    <th>Action</th>
                    </tr>
                    </thead>
                    <tbody>
                </tbody>
            </table>

Here's the result : enter image description here

Its not showing up properly due to margin and width.

Sachin Prasad
  • 5,365
  • 12
  • 54
  • 101

1 Answers1

1

Have you checked this? Datatables Custom styling

Dhwani
  • 7,484
  • 17
  • 78
  • 139