# Just a sticky section, not the complete header

**URL:** <https://forum.bricksbuilder.io/t/just-a-sticky-section-not-the-complete-header/9413>\
**Category:** How To\
**Created:** [January 18, 2023, 3:43pm UTC](https://forum.bricksbuilder.io/t/just-a-sticky-section-not-the-complete-header/9413 "2023-01-18T15:43:49Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwinpul](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/d/3be4f8/32.png) [@dwinpul](https://forum.bricksbuilder.io/u/dwinpul)\
**Post date:** [January 18, 2023, 3:43pm UTC](https://forum.bricksbuilder.io/t/just-a-sticky-section-not-the-complete-header/9413/1 "2023-01-18T15:43:49Z")

</div>

Hi,

I have a header that has 3 sections on top of each other.

I would like only one of them (the 3rd) to be sticky when scrolling.

Can someone help me, with a little input?

Daniel

---

<div class="post-metadata">

**Author:** ![Sridhar](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/sridhar/32/22855_2.png) [@Sridhar](https://forum.bricksbuilder.io/u/Sridhar)\
**Post date:** [January 19, 2023, 4:00am UTC](https://forum.bricksbuilder.io/t/just-a-sticky-section-not-the-complete-header/9413/2 "2023-01-19T04:00:13Z")

</div>

Try setting your 3rd section’s position to sticky with a top value like 0 or 10px.

> **[CSS Position Sticky - How It Really Works!](https://elad.medium.com/css-position-sticky-how-it-really-works-54cd01dc2d46)**
>
> CSS position sticky has really good browser support, yet most developers aren’t using it.

---

<div class="post-metadata">

**Author:** ![Kelly](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/kelly/32/8813_2.png) [@Kelly](https://forum.bricksbuilder.io/u/Kelly)\
**Post date:** [February 16, 2023, 8:19pm UTC](https://forum.bricksbuilder.io/t/just-a-sticky-section-not-the-complete-header/9413/3 "2023-02-16T20:19:25Z")

</div>

Yes, I think ‘Sections’ should be sticky capable.  
I do not see that sections can be ‘sticky’.  
Only a Header can be sticky, and there can be only one Header per post type, I think.  
Multiple headers might solve this stickiness problem, where either one can be sticky.  
Anyone have words of wisdom for this?

---

<div class="post-metadata">

**Author:** ![Sridhar](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/sridhar/32/22855_2.png) [@Sridhar](https://forum.bricksbuilder.io/u/Sridhar)\
**Post date:** [February 16, 2023, 8:39pm UTC](https://forum.bricksbuilder.io/t/just-a-sticky-section-not-the-complete-header/9413/4 "2023-02-16T20:39:48Z")

</div>

We can set the `position` property’s value to `sticky` with a top value to make any element as sticky.

Example: [Sticky Columns – Bricks Sections](https://brickssections.com/sticky-columns/).

---

<div class="post-metadata">

**Author:** ![Kelly](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/kelly/32/8813_2.png) [@Kelly](https://forum.bricksbuilder.io/u/Kelly)\
**Post date:** [February 16, 2023, 9:01pm UTC](https://forum.bricksbuilder.io/t/just-a-sticky-section-not-the-complete-header/9413/5 "2023-02-16T21:01:04Z")

</div>

Thank you so much for the super quick reply!  
Sorry, I didn’t see the link in your first reply, just my first day at Bricks :0/

---

<div class="post-metadata">

**Author:** ![Webrats](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/w/d26b3c/32.png) [@Webrats](https://forum.bricksbuilder.io/u/Webrats)\
**Post date:** [March 31, 2024, 4:06am UTC](https://forum.bricksbuilder.io/t/just-a-sticky-section-not-the-complete-header/9413/6 "2024-03-31T04:06:41Z")

</div>

How did you end up achieving making 1 section sticky in a header with multiple sections?  
Giving a section in my header the position:sticky and top: 0 value didn’t work.

---

<div class="post-metadata">

**Author:** ![avinash96](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/avinash96/32/8945_2.png) [@avinash96](https://forum.bricksbuilder.io/u/avinash96)\
**Post date:** [September 7, 2024, 12:12am UTC](https://forum.bricksbuilder.io/t/just-a-sticky-section-not-the-complete-header/9413/7 "2024-09-07T00:12:04Z")

</div>

Hey you can watch this video to achieve the functionality. I hope it helps. Please let me know if there is any doubt

[![](https://img.youtube.com/vi/7CD1x6NdbYw/maxresdefault.jpg "Make Single Sticky Row in a Multi-Row Header: Bricks Builder Tutorial") ](https://www.youtube.com/watch?v=7CD1x6NdbYw)

---

<div class="post-metadata">

**Author:** ![micha.mue](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/micha.mue/32/24185_2.png) [@micha.mue](https://forum.bricksbuilder.io/u/micha.mue)\
**Post date:** [December 30, 2024, 2:25pm UTC](https://forum.bricksbuilder.io/t/just-a-sticky-section-not-the-complete-header/9413/9 "2024-12-30T14:25:22Z")

</div>

Great video! Thanks for sharing!

I have an additional question: my section above the sticky part is larger … so I want to scroll until the sticky section is on top and then “stick it”.

Can anybody help me out here!???

Michael

 ![CleanShot 2024-12-30 at 15.05.09](https://forum.bricksbuilder.io/uploads/default/original/3X/3/8/38924bb5ed17dd82ee8ea7fb8d1c50f384077561.png)

---

<div class="post-metadata">

**Author:** ![sinanisler](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/sinanisler/32/34468_2.png) [@sinanisler](https://forum.bricksbuilder.io/u/sinanisler)\
**Post date:** [December 30, 2024, 3:20pm UTC](https://forum.bricksbuilder.io/t/just-a-sticky-section-not-the-complete-header/9413/10 "2024-12-30T15:20:49Z")

</div>

this adds or remove class depending on the height value it is 180 now you can change it to anything.

> **[Sticky header change height classs if page scrolled › Sinan Isler | WordPress...](https://sinanisler.com/codex/sticky-header-change-height-classs-if-page-scrolled/)**
>
> this code checks the page if scrolled 180px or more if it does scrolled add header-scrolled class to the header-top container. you can change the height or header-scrolled CSS properties to to suit to your needs. I use this method for mostly for...

---

<div class="post-metadata">

**Author:** ![micha.mue](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/micha.mue/32/24185_2.png) [@micha.mue](https://forum.bricksbuilder.io/u/micha.mue)\
**Post date:** [December 30, 2024, 9:55pm UTC](https://forum.bricksbuilder.io/t/just-a-sticky-section-not-the-complete-header/9413/11 "2024-12-30T21:55:22Z")

</div>

Thank you! Different approach but same goal … will give that a try!

---

<div class="post-metadata">

**Author:** ![sinanisler](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/sinanisler/32/34468_2.png) [@sinanisler](https://forum.bricksbuilder.io/u/sinanisler)\
**Post date:** [September 16, 2025, 11:27am UTC](https://forum.bricksbuilder.io/t/just-a-sticky-section-not-the-complete-header/9413/12 "2025-09-16T11:27:44Z")

</div>

I have updated this script for a while ago

new script adds scroll direction classes as well

- header-scrolled
- scrolling-up
- scrolling-down

> **[Scroll Show Hide, Add Class, Header, Menu, Depending on the Scroll Direction...](https://sinanisler.com/codex/scroll-show-hide-header-menu-depending-on-the-scroll-direction/)**
>
> with this code you can change css depending on the direction of the scroll. this example is for header but you can do this for any dom for example on this example I am hiding the header while scrolling down by moving the header -110px up and when...

now that we have [selector detector](https://bricksbuilder.io/release/bricks-2-0-alpha/#selector-detector) feature with bricks 2.0+ it is possible to select these class names and style it with nocode completely just run the script and handle styles with [selector detector](https://bricksbuilder.io/release/bricks-2-0-alpha/#selector-detector) 😉
