How do I make my header sticky? Is it automatic?
Asked by Rebecca McMurry:

I need the header row in my table to be sticky as I scroll down the table. How do I make it sticky?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Yes but there are some cases where it might not be sticky. Check out <https://confluence.atlassian.com/doc/tables-136463.html#Tables-stickytableheadersStickytableheadersinviewmode>

comments: author: David L
body: We have a table whose headers are not sticky but none of the exceptions apply. We are puzzled by this part of the explanation: "In some instances table header rows will stick to the top..." Why not "In most instances except those noted below..."?


author: Ericka Samuels
body: same here none of my table headers are sticking and none of the exception conditions are met


author: Maggie Secara
body: Same here. Confluence 6.6.1. Sticky headers used to be automatic. Did they take that away?


author: Cristin Hipke
body: I discovered that in addition to the (horrible) definitions above, if you merge two cells together, poof, there go your sticky table headers. Once I undid my merged cells, I was back in business.


author: Tony Griffiths
body: ....so how do you actually do it??


author: Ericka Samuels
body: I would love to know, this is driving me crazy. None of my tables meet the exception criteria, and if Atlassian is slowing rolling out a fix, (which i think I heard) , I haven't gotten it yet.


author: Daniel Hanson
body: So far I've found that it floats at the top of the table by default as long as you have NONE of the following:

* No cards/tabs anywhere on the page (if you have a tab section and the table is above it, the floating header still won't work)
* No merged cells in the table
* No tables within a cell of the table

I don't know if there are other Confluence features that break the floating header, but these are the ones I have found so far. I wouldn't trust it if you have more than one header row, also.


author: Andrey Khaneev _StiltSoft_
body: You can use [Table Filter](https://marketplace.atlassian.com/plugins/com.stiltsoft.confluence.plugin.tablefilter.tablefilter/server/overview) macro to [freeze several top rows or columns](https://docs.stiltsoft.com/display/TableFilter/Managing+Look+of+the+Table+and+Filtration+Pane#ManagingLookoftheTableandFiltrationPane-FreezingFirstNRows/Columns) without any limitations.

comments: author: Maggie Secara
body: According to the page John cited above, it should be automatic. I shouldn't

have to install an add-in to make this work.


author: Michael Haverbier
body: I realized that Firefox does not display the sticky header.

Chrome instead does display the sticky header.

[@Andrey Khaneev _StiltSoft_](/t5/user/viewprofilepage/user-id/781696)Your addon is working indeed but Firefox has render problems. It shows horizontal scroll bars although they are not needed as the outer box (which is added by the filter) is to small for the content.

(Using Confluence 6.6.13 and FF 68.6.1esr)

comments: author: Andrey Khaneev _StiltSoft_
body: Hi [@Michael Haverbier](/t5/user/viewprofilepage/user-id/48400),

We've just released Table Filter and Charts 6.1.1 with the fix for the redundant horizontal scrollbar in Firefox. Please, update the app and let me know if it works fine.


author: Michael Haverbier
body: Hi [@Andrey Khaneev _StiltSoft_](/t5/user/viewprofilepage/user-id/781696) ,

I updated the Addon and the render problems are fixed.

Thanks for the hint.


author: Tyler Hill
body: Select the table row and then a dynamic menu should appear; this will expose the option to designate the table row row instance as a heading row, which should drive the stickiness. There can only be one heading row per table to preserve that functionality.

![2020-03-16 21_12_27-Invision 3.0 Port - Completion Plan - Ascendon - CSG ConfluencePROD OMA.png](https://community.atlassian.com/t5/image/serverpage/image-id/86733i765B36D6D9CF8FDA/image-dimensions/622x108?v=v2 "2020-03-16 21_12_27-Invision 3.0 Port - Completion Plan - Ascendon - CSG ConfluencePROD OMA.png")

Hope this helps.


author: nhat khai nguyen
body: Hi, What about the REST Table? I have Java Script generate a REST Table, and how do I have my header sticky?


author: Maggie Secara
body: I found that if I scroll slowly, just a click or two down, the headings will stay in place. They only scroll away if I run the scroll wheel up and down quickly, like you do. Clicking once near the bottom of the scroll bar does it too, IIRC.

I've moved on to another contract and I'm not using Confluence right now, but before I left, that seemed to do the trick.


Tags: cloud

confluence-cloud