Setting fixed width for multiple datatales
Setting fixed width for multiple datatales
![satyabrata761](https://secure.gravatar.com/avatar/4df7f07024572103aa3f996b0aeac1cb/?default=https%3A%2F%2Fvanillicon.com%2F4df7f07024572103aa3f996b0aeac1cb_200.png&rating=g&size=120)
I'm trying to display multiple data tables in one page at the same time.
All the tables have differrent number of columns.
I want to make a fixed width for all the tables in the same page,
and provide scroll bar for tables where the number of columns are more.
I tried several options in data table API as below
var oTable = $('.dataTable').dataTable({
"bAutoWidth" : false,
"sScrollXInner": "100%",
"sScrollX" : "80%"
});
But still the widths of the multiple data tables are not coming same.
Also I tried below in the CSS, but I could not got any success.
table.display {
margin: 0 auto;
clear: both;
width: 100%;
overflow:scroll
}
I'd request for help here.
Thanks,
Satyabrata
All the tables have differrent number of columns.
I want to make a fixed width for all the tables in the same page,
and provide scroll bar for tables where the number of columns are more.
I tried several options in data table API as below
var oTable = $('.dataTable').dataTable({
"bAutoWidth" : false,
"sScrollXInner": "100%",
"sScrollX" : "80%"
});
But still the widths of the multiple data tables are not coming same.
Also I tried below in the CSS, but I could not got any success.
table.display {
margin: 0 auto;
clear: both;
width: 100%;
overflow:scroll
}
I'd request for help here.
Thanks,
Satyabrata
This discussion has been closed.
Replies
Can I get some help in my question?
Thanks,
Satyabrata