# Sidebar's position issue on scroll with custom HTML above the header

**URL:** <https://meta.discourse.org/t/sidebars-position-issue-on-scroll-with-custom-html-above-the-header/392237>\
**Category:** UX\
**Tags:** sidebar\
**Created:** [December 27, 2025, 12:54pm UTC](https://meta.discourse.org/t/sidebars-position-issue-on-scroll-with-custom-html-above-the-header/392237 "2025-12-27T12:54:55Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [December 27, 2025, 12:54pm UTC](https://meta.discourse.org/t/sidebars-position-issue-on-scroll-with-custom-html-above-the-header/392237/1 "2025-12-27T12:54:55Z")

</div>

I have some HTML content above Discourse’s header, which is about 90px tall.

When I scroll, the sidebar’s top position still takes this custom header’s height into account until I stop scrolling, then it properly recalculates its position. It happens every time we scroll.

Better seen than explained:

Not breaking, but slightly inelegant.

Until it’s fixed, I’d be happy to know if there’s any CSS or JS trick that would make this issue disappear 🙂

---

_[View the full topic](https://meta.discourse.org/t/sidebars-position-issue-on-scroll-with-custom-html-above-the-header/392237)._
