Overall width (including search and paging) limited to table width

Overall width (including search and paging) limited to table width

EDASEDAS Posts: 1Questions: 1Answers: 0

At https://dev.edas.info/testTable.php (using Bootstrap), the overall width occupies 100% of the container. I'd like it to be constrained to the width of the actual table (where feasible), with the table left-aligned. w-auto formats the table correctly, but not the overall DataTables construct. Thank you!

Answers

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974
    edited February 18

    I'm not sure what w-auto is but maybe you can place it on the div container for the table, ie <div id='main'>. Or create a new container div, for the table, that is the width you want. Set style="width:100%" on the table tag as shown in this example. This should keep the Datatable and components like page length within the defined container.

    Kevin

Sign In or Register to comment.