# Issue with navigation bar

**URL:** <https://forum.freecodecamp.org/t/issue-with-navigation-bar/395227>\
**Category:** General\
**Created:** [May 27, 2020, 10:22pm UTC](https://forum.freecodecamp.org/t/issue-with-navigation-bar/395227 "2020-05-27T22:22:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aetones](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/aetones/32/168972_2.png) [@aetones](https://forum.freecodecamp.org/u/aetones)\
**Post date:** [May 27, 2020, 10:22pm UTC](https://forum.freecodecamp.org/t/issue-with-navigation-bar/395227/1 "2020-05-27T22:22:06Z")

</div>

Here is what I have… [https://codepen.io/aetones/pen/ExVzOXB?editors=1100](https://codepen.io/aetones/pen/ExVzOXB?editors=1100)

As you can see, my navigation bar overlaps the elements directly below. How can I fix this? Any other suggestions would be appreciated.

---

<div class="post-metadata">

**Author:** ![DaxHarley](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/daxharley/32/88794_2.png) [@DaxHarley](https://forum.freecodecamp.org/u/DaxHarley)\
**Post date:** [May 27, 2020, 10:50pm UTC](https://forum.freecodecamp.org/t/issue-with-navigation-bar/395227/2 "2020-05-27T22:50:46Z")

</div>

The position fixed style removes the element from the document flow as though it was not there. So you will have to add a margin-top at least equal to the height of your nav bar to your content.

---

<div class="post-metadata">

**Author:** ![aetones](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/aetones/32/168972_2.png) [@aetones](https://forum.freecodecamp.org/u/aetones)\
**Post date:** [May 27, 2020, 11:11pm UTC](https://forum.freecodecamp.org/t/issue-with-navigation-bar/395227/3 "2020-05-27T23:11:13Z")

</div>

Thank you for helping me better understand the fixed style. I’d added margin-top and it is fixed now. Thanks.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 6:51pm UTC](https://forum.freecodecamp.org/t/issue-with-navigation-bar/395227/4 "2021-06-01T18:51:52Z")

</div>

Closed on June 1, 2021, 6:51pm UTC


