# How do I freeze the first column and header row?

**URL:** <https://community.weweb.io/t/how-do-i-freeze-the-first-column-and-header-row/8957>\
**Category:** How do I?\
**Created:** [June 4, 2024, 6:09pm UTC](https://community.weweb.io/t/how-do-i-freeze-the-first-column-and-header-row/8957 "2024-06-04T18:09:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jptrinh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jptrinh/32/1493_2.png) [@jptrinh](https://community.weweb.io/u/jptrinh)\
**Post date:** [June 4, 2024, 9:39pm UTC](https://community.weweb.io/t/how-do-i-freeze-the-first-column-and-header-row/8957/3 "2024-06-04T21:39:19Z")

</div>

> [@Freeze container on a horizontal scroll](https://community.weweb.io/t/freeze-container-on-a-horizontal-scroll/8514/3):
>
> Hey @enzocarmo Maybe it’s a bit late, but came up with a solution to freeze any column to the left, inside the Table component. I think adding position: sticky and left:0 would have done the trick, but with the auto-generated wrappers, it’s not working. Fortunately, we can still add some custom styling. This worked for me (add the style to an HTML embed to preview it in the editor) : \<style\> #myTable .ww-columns.ww-object-elem \> .ww-layout \> div:nth-child(1) { position: sticky; left…

> [@How can I set the headers of the "Tabs" element to position sticky?](https://community.weweb.io/t/how-can-i-set-the-headers-of-the-tabs-element-to-position-sticky/8916/2):
>
> You can target the tabs container with custom css. To preview these changes in the editor, you can put your style in an HTML Embed. Something like that worked for me: \<style\> .tabs-object .tabs-container[data-v-077c1ff4] { position: sticky; top: 0; } \</style\> The data-\* is probably specific to my component, but you can modify it with your own if you look at the Inspector panel or… you can just go with an !important statement… \<style\> .tabs-object .tabs-container { position: sti…

You can refer yourself to these posts above 🙂 Haven’t tried with the stack component but the logic should be close.  
Let us know if the solutions worked for you!

---

_[View the full topic](https://community.weweb.io/t/how-do-i-freeze-the-first-column-and-header-row/8957)._
