Title: Static Table Header?
Last modified: August 21, 2016

---

# Static Table Header?

 *  Resolved [syncmaster913n](https://wordpress.org/support/users/syncmaster913n/)
 * (@syncmaster913n)
 * [13 years ago](https://wordpress.org/support/topic/static-table-header/)
 * Hi Tobias,
 * Thank you for being so helpful in all your replies. I hope you can help me too
   🙂
 * Basically I would like to make a part of a table (the top 3 rows) FIXED, so that
   when someone scrolls the page down and those top three rows reach the top of 
   the page, they stop there (remain visible at the top of the page) while the remainder
   of the page keeps scrolling up. This is for a comparison chart where the top 
   3 rows contain information regarding the product that are being compared, so 
   I would like the reader to constantly be aware of which products he is currently
   reading the specs for (which is difficult if the product names at the top of 
   the table move out of sight).
 * Is there any way I could easily do this with custom CSS code and overflow:auto?
   I’m pretty new to CSS but if you can point me in the right direction I’m sure
   I can handle it.
 * Thanks!
 * [http://wordpress.org/extend/plugins/tablepress/](http://wordpress.org/extend/plugins/tablepress/)

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/static-table-header/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/static-table-header/page/2/?output_format=md)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years ago](https://wordpress.org/support/topic/static-table-header/#post-3792006)
 * Hi,
 * thanks for your question.
 * For this, you can use the TablePress DataTables FixedHeader Extension from [http://tablepress.org/extensions/datatables-fixedheader/](http://tablepress.org/extensions/datatables-fixedheader/)
   
   That will fix the table head at the top of the page during scrolling.
 * However, this solution does only support one head row. Multiple head rows are
   not supported by TablePress as of now though, sorry.
 * Regards,
    Tobias
 *  Thread Starter [syncmaster913n](https://wordpress.org/support/users/syncmaster913n/)
 * (@syncmaster913n)
 * [13 years ago](https://wordpress.org/support/topic/static-table-header/#post-3792008)
 * Hi Tobias,
 * Thanks a lot!
 * Will this plugin allow me to set a static header even if I have unchecked the“
   Make first row the header of this table” option?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years ago](https://wordpress.org/support/topic/static-table-header/#post-3792009)
 * Hi,
 * no, this Extension requires that checkbox to be checked, as it can only transform
   that header row into a fixed header.
 * Regards,
    Tobias
 *  Thread Starter [syncmaster913n](https://wordpress.org/support/users/syncmaster913n/)
 * (@syncmaster913n)
 * [13 years ago](https://wordpress.org/support/topic/static-table-header/#post-3792044)
 * hi Tobias,
 * Thanks, I installed the plugin and it generally works fine, however I’m facing
   one strange issue; basically when the FixedHeader plugin is activated, it seems
   like the top row (the header) is getting duplicated, with one row going over 
   the other. So basically for some reason there are TWO header rows, with one covering
   the upper half of the other. When I disable the FixedHeader plugin (or change
   the table shortcut back to [table id=1 /]) everything goes back to normal.
 * Have you experienced anything similar in the past?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years ago](https://wordpress.org/support/topic/static-table-header/#post-3792066)
 * Hi,
 * that is correct, and it’s the intended behavior. Basically, this has technical
   reason, as a sticky header is only possible by duplicating the actual header.
   However, this should be invisible to the user, as they should be right on top
   of each other. As you can see them, this means that there’s some CSS not being
   picked up by the copy. We should be able to fix this with some “Custom CSS”. 
   To find that, I’d need to see this though, so please post a link to the page 
   with the table where this happens.
 * Regards,
    Tobias
 *  Thread Starter [syncmaster913n](https://wordpress.org/support/users/syncmaster913n/)
 * (@syncmaster913n)
 * [13 years ago](https://wordpress.org/support/topic/static-table-header/#post-3792071)
 * Hi Tobias,
 * Thanks – here’s a link. It’s shortened and set to expire within 50 minutes from
   now as I do not want the website to remain live, hope that’s OK:
 * [http://temporaryurl.scripteen.com/ah](http://temporaryurl.scripteen.com/ah)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years ago](https://wordpress.org/support/topic/static-table-header/#post-3792083)
 * Hi,
 * thanks for the link!
 * Please try adding this to the “Custom CSS” textarea on the “Plugin Options” screen
   of TablePress:
 *     ```
       .tablepress thead th,
       .tablepress tfoot th {
         line-height: normal;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [syncmaster913n](https://wordpress.org/support/users/syncmaster913n/)
 * (@syncmaster913n)
 * [13 years ago](https://wordpress.org/support/topic/static-table-header/#post-3792085)
 * Oh and in case it helps, here is my Custom CSS for the table:
 * _[CSS moderated. All that is needed is a link to your site.]_
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years ago](https://wordpress.org/support/topic/static-table-header/#post-3792086)
 * Hi,
 * no, no need to post your “Custom CSS” here, I can see that in the page 🙂
 * Regards,
    Tobias
 *  Thread Starter [syncmaster913n](https://wordpress.org/support/users/syncmaster913n/)
 * (@syncmaster913n)
 * [13 years ago](https://wordpress.org/support/topic/static-table-header/#post-3792087)
 * Man, you rock!!! the problem is immediately fixed 🙂
 * Thanks a lot!!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years ago](https://wordpress.org/support/topic/static-table-header/#post-3792088)
 * Hi again,
 * in fact, please combine everything that starts with
 *     ```
       .tablepress thead th,
       .tablepress tfoot th {
       ```
   
 * into one block:
 *     ```
       .tablepress thead th,
       .tablepress tfoot th {
         text-align: center;
         vertical-align: text-top;
         background-color: white;
         line-height: normal;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [syncmaster913n](https://wordpress.org/support/users/syncmaster913n/)
 * (@syncmaster913n)
 * [13 years ago](https://wordpress.org/support/topic/static-table-header/#post-3792089)
 * Made a tiny Donation as an expression of my appreciation. Keep it up man!
 *  Thread Starter [syncmaster913n](https://wordpress.org/support/users/syncmaster913n/)
 * (@syncmaster913n)
 * [13 years ago](https://wordpress.org/support/topic/static-table-header/#post-3792092)
 * Done!
 * Thank you again 🙂
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years ago](https://wordpress.org/support/topic/static-table-header/#post-3792093)
 * Hi,
 * great to hear that this helped! 🙂
    And thanks for the donation!
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](http://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!
 *  Thread Starter [syncmaster913n](https://wordpress.org/support/users/syncmaster913n/)
 * (@syncmaster913n)
 * [13 years ago](https://wordpress.org/support/topic/static-table-header/#post-3792095)
 * Well it’s hard to give it anything less than five stars to be honest 🙂

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/static-table-header/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/static-table-header/page/2/?output_format=md)

The topic ‘Static Table Header?’ 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/)

 * 22 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/static-table-header/page/2/#post-3792148)
 * Status: resolved