scrollX Table Width Question
scrollX Table Width Question
Hey all,
I am somehow lost on controlling the width of a table that has the scrollX option set. You can find the example here:
http://www.whatthedoof.com/datatables_example/test.html
Debug Code: eholip
When you open the page, you will probably (depending on your resolution) notice that the table spans far beyond the page.
Somehow I thought that enabling scrolling on the x-axis should exactly avoid that.
In the end I would like to have the table span 3/4 of a page.
Am I doing something wrong or did I misinterpret the function?
I tried several css things to get this under control, but did not succeed. I have to admit though that I am not exactly a css lover ;-)
I am somehow lost on controlling the width of a table that has the scrollX option set. You can find the example here:
http://www.whatthedoof.com/datatables_example/test.html
Debug Code: eholip
When you open the page, you will probably (depending on your resolution) notice that the table spans far beyond the page.
Somehow I thought that enabling scrolling on the x-axis should exactly avoid that.
In the end I would like to have the table span 3/4 of a page.
Am I doing something wrong or did I misinterpret the function?
I tried several css things to get this under control, but did not succeed. I have to admit though that I am not exactly a css lover ;-)
This discussion has been closed.
Replies
The scrollX parameter unfortunately does not work for me. No matter what value I put in there (100px, 50%, etc) the table always spans beyond he page.
By removing scrollXInner and adjusting the outer div's width that is on the page, I got my desired layout.
http://www.whatthedoof.com/datatables_example/test1.html
I still would like to know if I am doing something fundamentally wrong or if there is a bug with the scrollX parameter.
Thx
Allan
That explains. I am good now.