# Table - fixed header does stick to the top when scrolling down

**URL:** <https://community.appfarm.io/t/table-fixed-header-does-stick-to-the-top-when-scrolling-down/1084>\
**Category:** Bug reports\
**Created:** [March 1, 2024, 11:59am UTC](https://community.appfarm.io/t/table-fixed-header-does-stick-to-the-top-when-scrolling-down/1084 "2024-03-01T11:59:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johan18](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/johan18/32/748_2.png) [@Johan18](https://community.appfarm.io/u/Johan18)\
**Post date:** [March 1, 2024, 11:59am UTC](https://community.appfarm.io/t/table-fixed-header-does-stick-to-the-top-when-scrolling-down/1084/1 "2024-03-01T11:59:49Z")

</div>

Hi  
Trying to make the header of a table stick when scrolling. This is currently not working for me.  
**develop**  
Appfarm version **102-0-34**  
Model version **19534**

If there are any specific ways to make it work, it needs to be documented. But it looks like a bug.  
my setup; view-table or view-container. Tried both scroll auto on view and on container. Tesed on two separate tables.  
Behavior; header is not sticking, but scrolls down as well.

Let me know if you need more info.

---

<div class="post-metadata">

**Author:** ![tonje](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/tonje/32/119_2.png) [@tonje](https://community.appfarm.io/u/tonje)\
**Post date:** [March 1, 2024, 1:47pm UTC](https://community.appfarm.io/t/table-fixed-header-does-stick-to-the-top-when-scrolling-down/1084/2 "2024-03-01T13:47:31Z")

</div>

Hi, and thanks for reaching out to the community!  
Have you made sure you have the scroll setting at the right level? To make this work, it requires that you have enabled scroll on the container wrapping the table, and it might be necessary to set the height of the table to 100%. There is an example on this in “UI Components” (view: Table) in our Showroom if you would like to have a closer look at the setup.

I hope this is helps, please let us know if you need further guidance on this!

---

<div class="post-metadata">

**Author:** ![Johan18](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/johan18/32/748_2.png) [@Johan18](https://community.appfarm.io/u/Johan18)\
**Post date:** [March 4, 2024, 8:39am UTC](https://community.appfarm.io/t/table-fixed-header-does-stick-to-the-top-when-scrolling-down/1084/3 "2024-03-04T08:39:51Z")

</div>

Ok  
Table height needs to be set to 100% on both the table and the container to make it work.

Thanks for the help. I suggest this is documented in [docs.appfarm.io](http://docs.appfarm.io) and on the blue dot in create.

---

<div class="post-metadata">

**Author:** ![tonje](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/tonje/32/119_2.png) [@tonje](https://community.appfarm.io/u/tonje)\
**Post date:** [March 4, 2024, 10:44am UTC](https://community.appfarm.io/t/table-fixed-header-does-stick-to-the-top-when-scrolling-down/1084/4 "2024-03-04T10:44:20Z")

</div>

Great to hear that you solved it!  
And thank you for your feedback, I have forwarded your suggestion to the team. 🙂
