How to set the width of table of datatable

How to set the width of table of datatable

ayrtonpereiraayrtonpereira Posts: 1Questions: 1Answers: 0
edited November 2019 in Free community support

Hello. I am new here and my english isn't the best but i will try to explain my problem. Well it's my first time that iam using Datatables Jquery. So when I set up my page with datatable I found it had too much lateral spacing (margin right?) so I wanted to reduce those lateral spacing that sorround the table (datable). I tried through css but didn't work. How can I resolve this problem? Can you help me please, down here i will put a picture of the table to help you to help me...

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @ayrtonpereira ,

    Welcome to DataTables! The table would just fill the container that it's in, this is shown in this example, so you'll need to look at the container holding the table.

    If that doesn't help, we're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.