table position problem

table position problem

migeomigeo Posts: 3Questions: 1Answers: 0

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

  • allanallan Posts: 61,609Questions: 1Answers: 10,088 Site admin
    Answer ✓

    I suspect its a CSS issue. Could you add width="100%" to your table 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

  • migeomigeo Posts: 3Questions: 1Answers: 0

    Thanks for the comment Allen. I'll try it Monday. Hopefully it'll work.

  • migeomigeo Posts: 3Questions: 1Answers: 0

    Sorry for not responding sooner but thanks for the help. Worked like a charm.

This discussion has been closed.