Overall width (including search and paging) limited to table width
Overall width (including search and paging) limited to table width
EDAS
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
I'm not sure what
w-auto
is but maybe you can place it on thediv
container for the table, ie<div id='main'>
. Or create a new containerdiv
, for the table, that is the width you want. Setstyle="width:100%"
on thetable
tag as shown in this example. This should keep the Datatable and components like page length within the defined container.Kevin