Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    The problem could be that your theme is setting a different padding. Please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress th,
    .tablepress td {
        padding: 8px !important;
    }

    Regards,
    Tobias

    Thread Starter webeminence

    (@webeminence)

    Yeah, I switched to another theme and the fixed header gets a bit taller but width stays the same. So it seems like it could be theme styles.

    I added your CSS and it’s still doing the same thing though.

    This is the custom styling I have now. I’ve tried removing it all and the problem remains. I also tried leaving only the code you gave and the problem was still there.

    
    @media all and (max-width: 1620px) {
    .tablepress tr td {padding: 4px;}
    
    .tablepress thead th {
     padding: 4px;
     font-size: 12px;
    }
    }
    
    .tablepress th,
    .tablepress td {
        padding: 8px !important;
    }
    • This reply was modified 7 years, 5 months ago by webeminence.
    • This reply was modified 7 years, 5 months ago by bdbrown.
    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    from what I can see, things got better, but there’s still some offset. Unfortunately, I have no idea where that’s coming from.
    I can only suggest that you contact the developer of the JS code for the FixedHeader about this, at https://www.datatables.net/

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fixed Header shifting due to height?’ is closed to new replies.