# Body content showing up underneath navbar

**URL:** <https://forum.freecodecamp.org/t/body-content-showing-up-underneath-navbar/483446>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [October 28, 2021, 12:34am UTC](https://forum.freecodecamp.org/t/body-content-showing-up-underneath-navbar/483446 "2021-10-28T00:34:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doolittle28](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/doolittle28/32/239963_2.png) [@Doolittle28](https://forum.freecodecamp.org/u/Doolittle28)\
**Post date:** [October 28, 2021, 12:34am UTC](https://forum.freecodecamp.org/t/body-content-showing-up-underneath-navbar/483446/1 "2021-10-28T00:34:28Z")

</div>

All of my body content is showing up underneath the header. I tried using margin top to fix it and it works fine but isn’t responsive at all. Not sure what to do here?

[https://codepen.io/doolittle28/pen/xxLrqab](https://codepen.io/doolittle28/pen/xxLrqab)

---

<div class="post-metadata">

**Author:** ![bbsmooth](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bbsmooth/32/203556_2.png) [@bbsmooth](https://forum.freecodecamp.org/u/bbsmooth)\
**Post date:** [October 28, 2021, 1:11am UTC](https://forum.freecodecamp.org/t/body-content-showing-up-underneath-navbar/483446/2 "2021-10-28T01:11:58Z")

</div>

A few things:

- You want to set `padding-top` instead of `margin-top` on the h1.
- Putting a margin on the header will put space between it and the edge of the browser window

---

<div class="post-metadata">

**Author:** ![Doolittle28](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/doolittle28/32/239963_2.png) [@Doolittle28](https://forum.freecodecamp.org/u/Doolittle28)\
**Post date:** [October 28, 2021, 1:15am UTC](https://forum.freecodecamp.org/t/body-content-showing-up-underneath-navbar/483446/3 "2021-10-28T01:15:06Z")

</div>

Ok ok that makes sense. Is that standard practice when a header is overlapping page content?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [April 28, 2022, 1:16pm UTC](https://forum.freecodecamp.org/t/body-content-showing-up-underneath-navbar/483446/4 "2022-04-28T13:16:02Z")

</div>

Closed on April 28, 2022, 1:16pm UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
