Title: Header offset when using fixed columns
Last modified: February 28, 2022

---

# Header offset when using fixed columns

 *  Resolved [andynz](https://wordpress.org/support/users/andynz/)
 * (@andynz)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/header-offset-when-using-fixed-columns/)
 * I have a table where I use the fixedcolumns option. The shortcode is:
    [table
   id=branch-award-rscds responsive=scroll datatables_fixedcolumns_left_columns=
   1/]
 * This is the third table in the attached link. The vertical separators in the 
   header row are not aligned with those in the rows below.
 * The table above it is the identical table, but without the fixed columns option.
 * Any thoughts on this?
 * Regards
    Andy
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fheader-offset-when-using-fixed-columns%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/header-offset-when-using-fixed-columns/#post-15413516)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * I’m not completely sure, but my feeling is that this is related to the border
   lines in the table. There a few CSS declarations in the theme regarding these(
   sometimes with first setting transparent borders and then changing colors). Unfortunately,
   border lines are tricky for the underlying external JavaScript library (which
   adds the FixedColumns feature) to handle, as it makes calculations of column 
   widths much more difficult.
    Unfortunately, I’m not aware of a real fix here,
   but can only suggest to try going without vertical border lines (vertical borders
   are often also discouraged because they can reduce readability of the table data).
   Sorry for not having better news here.
 * Regards,
    Tobias
 *  Thread Starter [andynz](https://wordpress.org/support/users/andynz/)
 * (@andynz)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/header-offset-when-using-fixed-columns/#post-15413743)
 * Thanks for looking into it, Tobias.
    I have a rather unwieldy solution which 
   is to: – Leave row 1 as it is (although cells can be cleared). – Option settings:
   Row 1 is header – Enter headings in row 2 which is formatted as a header. – Set
   row 1 to non-display.
 * Note that row 1 has to be defined as a header in order to allow datatable functions.
 * Regards
    Andy
 *  Thread Starter [andynz](https://wordpress.org/support/users/andynz/)
 * (@andynz)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/header-offset-when-using-fixed-columns/#post-15413951)
 * That was a bit premature.
    If I hide the header row (row 1), the fixedcolumns
   stops working.
 * Oh well, I will have to dispense with fixed columns on this table.
    Andy
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/header-offset-when-using-fixed-columns/#post-15414936)
 * Hi,
 * indeed, this sounds like a possible solution (which I have never thought about
   myself)! 🙂
 * You will just have to hide the first row in a different way, using “Custom CSS”
   code like
 *     ```
       .tablepress-id-123 thead {
         display: none;
       }
       ```
   
 * (where 123 is the table ID).
 * Regards,
    Tobias

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Header offset when using fixed columns’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/header-offset-when-using-fixed-columns/#post-15414936)
 * Status: resolved