Header not lining up with columns

Header not lining up with columns

arnorbldarnorbld Posts: 123Questions: 23Answers: 1

Hi guys,

I'm having a really weird problem that I'm not sure if is DT related or if it is something else. I have table with thead and tbody. Each have 3 columns, but the header columns don't line up with the body columns! See the screenshot below:

No matter what I do, the columns are all over the place. Also the table doesn't fill the table border and it doesn't seem to adjust to the number of rows. This is inside a jQuery DIALOG, which has a fixed initial size, but I don't think that should cause any problems.

Any ideas? I'll try to get this up online tomorrow so I can let you take a look at it if needed.

Best regards,
Arnor

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Possibly a styling issue with the wrong CSS file being loaded. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • arnorbldarnorbld Posts: 123Questions: 23Answers: 1

    Hi Colin,

    Will do.

    Best regards,

  • arnorbldarnorbld Posts: 123Questions: 23Answers: 1

    Hi Colin,

    I completely removed all DT files and code from this page and table and it still shows this same problem, so this is not related to DataTables! So I'll need to dig into this myself :)

    Best regards,

This discussion has been closed.