Title: DataTables FixedHeader
Last modified: June 22, 2017

---

# DataTables FixedHeader

 *  Resolved [tiger2deuce](https://wordpress.org/support/users/tiger2deuce/)
 * (@tiger2deuce)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/datatables-fixedheader/)
 * Hi Tobias,
 * I am using the DataTables FixedHeader on a table and it stays at the top of the
   screen but when I scroll down, it’s almost like the header row columns expand
   so the headers are no longer lined up with the data. Could you check it out and
   let me know if there is a fix or if I’ve done something wrong? The page is [http://www.d2softball.com/all-teams](http://www.d2softball.com/all-teams).
 * Thanks,
    Kris

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/datatables-fixedheader/#post-9252565)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * This seems to be related to the padding in the cells. Please change the “Custom
   CSS” block
 *     ```
       #content .tablepress th,
       #content .tablepress td {
       	padding: 1px;
       }
       ```
   
 * to
 *     ```
       .tablepress th,
       .tablepress td {
       	padding: 1px !important;
       }
       ```
   
 * Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘DataTables FixedHeader’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/datatables-fixedheader/#post-9252565)
 * Status: resolved