# Slight CSS bug when using a custom global navigation bar

**URL:** <https://meta.discourse.org/t/slight-css-bug-when-using-a-custom-global-navigation-bar/45109>\
**Category:** Bug\
**Created:** [1 Junio, 2016 21:43 UTC](https://meta.discourse.org/t/slight-css-bug-when-using-a-custom-global-navigation-bar/45109 "2016-06-01T21:43:28Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [1 Junio, 2016 22:33 UTC](https://meta.discourse.org/t/slight-css-bug-when-using-a-custom-global-navigation-bar/45109/14 "2016-06-01T22:33:25Z")

</div>

Yeah, the `docked` class thing is definitely a bug, the disappearing on scroll… well, that is due to the custom CSS using `position: relative` on your header, that will definitely scroll with page scrolling. You’d have to use `position:fixed` and remove the `margin: -27px 0 0` to stop it from scrolling off screen.

Should note that [HTG’s header](https://discuss.howtogeek.com/) disappears whilst scrolling and his site is before the CSS changes I linked to previously, so that tells me if you want a static header to show all of the time, you have to modify your CSS to make that happen.

---

_[View the full topic](https://meta.discourse.org/t/slight-css-bug-when-using-a-custom-global-navigation-bar/45109)._
