scrollX in CSS Grid question

scrollX in CSS Grid question

mortac8mortac8 Posts: 1Questions: 1Answers: 0
edited April 2020 in Free community support

If I have my DataTable in a CSS Grid area that has 'auto' width, I can't get DataTables to show the scrollbar properly. If I make the width a fixed size then it works fine.

Can someone take a look at my jsfiddle and advise if possible. I am new to DataTables so any comments are appreciated. Thanks!

http://jsfiddle.net/9L47ngkx/

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,669Questions: 1Answers: 10,096 Site admin
    Answer ✓

    Use: calc(100% - 100px) for your CSS to be able to give a relative width, minus the absolute width of your first column: http://jsfiddle.net/756bgax0/

    Allan

This discussion has been closed.