Why might fixed header columns not line up with table body columns?
Why might fixed header columns not line up with table body columns?
My fixed table works well, but many of the columns in the fixed header do not have the same width as the table body columns. The overall width of the fixed header lines up with my table fine. It's just some of the columns. It seems to be dividing up the widths of all of the header columns evenly, or at lease in a section evenly. My table header has two rows, with the top row having colspans. The table header columns in question do have a label and div, and I am rotating the text using writing-mode css (writing-mode: vertical-rl;)
I don't have a link to share as this is hosted on a secure, internal server, but I can upload some images. One shows the normal table, and the other is showing the fixed header when the table window is scrolled down. It's applying element.style in the browser, but that don't seem to be getting applied correctly. Just wondering if I am missing something.
Answers
Here is all of my initialization code:
I don't believe FixedHeader supports complex headers. See this thread. See if it works better without the top header row.
Make sure you have the proper CSS files for the styling framework you are using. Use the Download Builder for this.
Styling issues are difficult to solve without actually seeing the problem page. Can you build a test case that shows the issue?
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin