How can I fix the built-in buttons and pagination to width of the table when adjusting window?
How can I fix the built-in buttons and pagination to width of the table when adjusting window?

When I first open my page that uses DataTables, the tools above and below the table are perfectly aligned with the right border of the table. However, when I adjust my browser to make it wider or smaller, the tools float away from the table.
On load everything looks good:
see [image.png]
After adjusting window it's off:
see [image2.png]
Any ideas if I can solve this myself or if it's a bug in the plugin?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Do you have
width="100%"
defined on your table in HTML?Kevin
I do now, thanks bud! How does that work exactly?
Does this answer your question?
https://datatables.net/release-datatables/examples/basic_init/flexible_width.html
Kevin
Yes it does, thanks again