Table always takes up all browser width
Table always takes up all browser width
pinkisntwell
Posts: 3Questions: 0Answers: 0
I have a table that will always take the whole browser width, no matter what sWidth I specify in aoColumns, no matter whether I specify bAutoWidth, and no matter if I drop some columns (with bVisible = false). Here is the problematic webpage: www.statsfair.com/pinnacle/.
Is there a way to make the table take up less space?
Is there a way to make the table take up less space?
This discussion has been closed.
Replies
Put the table inside a and use CSS to control its width. That's what I had to do with mine.
width: 1556px
on the table element. If I change that to something smaller it works but then the buttons for previous page stay in their position (to the very right of the page). I have to change the buttons' positions separately and this is not easy to do.
Why is it so hard to specify the width of everything that dataTables puts on the page? Am I the only one that doesn't want the table to take up the whole page?
Also I think you need to run a HTML validator over the page.
Allan