Unable to get DataTables header row to line up when using `scrollY`
Unable to get DataTables header row to line up when using `scrollY`
imthenachoman
Posts: 4Questions: 2Answers: 0
DataTable header is not lining up when using scrollY. I'm not sure why it doing this.
This discussion has been closed.
Answers
Some of the custom CSS is causing problems. For example:
which would mean the third column takes 100% width, which doesn't quite make sense, is triggering our right-to-left layout, which is interesting in itself.
With stripped back CSS it works okay: https://codepen.io/imthenachoman/pen/bGryxga
Allan
Sorry - I forgot CodePen doesn't save automatically. This is the modified CSS that works:
Allan
Ah. Got it. Thank you!