# After updating Discourse, top header moves down with scrolling

**URL:** https://meta.discourse.org/t/after-updating-discourse-top-header-moves-down-with-scrolling/173261
**Category:** Bug
**Created:** [December 14, 2020, 5:15pm UTC](https://meta.discourse.org/t/after-updating-discourse-top-header-moves-down-with-scrolling/173261 "2020-12-14T17:15:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kingroy23](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kingroy23/32/175728_2.png) [@Kingroy23](https://meta.discourse.org/u/Kingroy23)
#### Post date: [December 14, 2020, 5:15pm UTC](https://meta.discourse.org/t/after-updating-discourse-top-header-moves-down-with-scrolling/173261/1 "2020-12-14T17:15:34Z")

</div>

I updated my forum today and this bug popped up.

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/b/2b103b11252e6f25fecf977cd628337bdb9cd788.jpeg)

When you scroll down, that top bar comes down with you. Any ideas how I can fix this?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [December 14, 2020, 7:18pm UTC](https://meta.discourse.org/t/after-updating-discourse-top-header-moves-down-with-scrolling/173261/3 "2020-12-14T19:18:22Z")

</div>

We made some updates to the way the header works. There are a couple CSS changes you’ll need to make to fix it.

You’ll need to remove `position: fixed;` from the header here:

```css
header.d-header {
  position: fixed;
}

```

You’ll also need to remove this top padding:

```css
#main {
  padding-top: 120px;
}

```

After making those changes you might want to _add_ some margin to `#main-outlet`…

```css
#main-outlet {
  margin-top: 35px;
}

```

That should get things back to where they were.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [December 17, 2020, 7:02am UTC](https://meta.discourse.org/t/after-updating-discourse-top-header-moves-down-with-scrolling/173261/4 "2020-12-17T07:02:08Z")

</div>


