Need horizontal scroll to table and column width to be applied on a non-fixed column.
Need horizontal scroll to table and column width to be applied on a non-fixed column.
Nijagun Gadagi
Posts: 6Questions: 3Answers: 0
Hi,
I have a requirement wherein there is a column with title "Description" which will contain long text. I need to specify particular width in percentage (preferred) or in pixels to that column only and this column can't be fixed column.
Please see the attached screenshot.
Note: I need horizontal scrolling to the table as well because there will be multiple columns which can't fit in normal browser window.
Any help in this regard will be lot more helpful.
This discussion has been closed.
Answers
Issue got solved using below css that was suggested by AjitNalawade for issue mentioned in below link.
https://datatables.net/forums/discussion/comment/49237/#Comment_49237
table.display {
margin: 0 auto;
width: 100%;
clear: both;
border-collapse: collapse;
table-layout: fixed; // ***********add this
}