table position problem
table position problem
Hey people, total noob here. I've started working with datatables recently and I've encountered this problem which I haven't been able to fix. I was wondering if someone could help me. Thanks.
So basically I noticed that whenever the table's width is rather small, there isn't the usual line retuirn after the buttons and the search bar. Instead, the table just hangs to the right.
here are pics to demonstrate what I mean
Could anybody help me fix this issue? Thank you very much
This question has an accepted answers - jump to answer
Answers
I suspect its a CSS issue. Could you add
width="100%"
to yourtable
please? That should resolve it. If you need the table to be narrower, just make the container element smaller.Another option might be to add
clear: both
to the table's CSS.Allan
Thanks for the comment Allen. I'll try it Monday. Hopefully it'll work.
Sorry for not responding sooner but thanks for the help. Worked like a charm.