# Why doesn't Discourse use position:sticky for the top header?

**URL:** <https://meta.discourse.org/t/why-doesnt-discourse-use-position-sticky-for-the-top-header/101960>\
**Category:** UX\
**Created:** [13 בנובמבר,‏ 2018,‏ 6:24pm UTC](https://meta.discourse.org/t/why-doesnt-discourse-use-position-sticky-for-the-top-header/101960 "2018-11-13T18:24:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![notriddle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/notriddle/32/133055_2.png) [@notriddle](https://meta.discourse.org/u/notriddle)\
**Post date:** [13 בנובמבר,‏ 2018,‏ 6:24pm UTC](https://meta.discourse.org/t/why-doesnt-discourse-use-position-sticky-for-the-top-header/101960/1 "2018-11-13T18:24:27Z")

</div>

Continuing the discussion from [How to finely scroll out custom header?](https://meta.discourse.org/t/how-to-finely-scroll-out-custom-header/101869/9):

[https://caniuse.com/#feat=css-sticky](https://caniuse.com/#feat=css-sticky)

The behavior that the d-header is doing, where markup placed before it scrolls of the screen but the header itself does not, is implemented using a JavaScript onscroll handler. This is a common-enough feature that evergreen browsers implement it build-in now, with no glitching.

---

_[View the full topic](https://meta.discourse.org/t/why-doesnt-discourse-use-position-sticky-for-the-top-header/101960)._
