Size to parent div
Size to parent div

There are multiple questions around about how to get datatables to size according to its parent, but I cant get anything to work.
At the moment Ive got a problem where after I dynamically populate a table with data, then it overflows its parent div and shows as a right mess.
What are other people doing when trying to contain a datatable without overflowing?
This discussion has been closed.
Answers
Here are some ideas:
style="width:100%"
on thetable
tag.responsive
to hide the columns or usescrollX
.Kevin
Width always seems to work, its the height that keeps overflowing :-(
Oh. Here are a couple options I can think of:
scrollY
Kevin