# Landing page project : help with positioning

**URL:** <https://forum.freecodecamp.org/t/landing-page-project-help-with-positioning/455811>\
**Category:** I Built This\
**Created:** [April 14, 2021, 9:45am UTC](https://forum.freecodecamp.org/t/landing-page-project-help-with-positioning/455811 "2021-04-14T09:45:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![francesca.giammichel](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/francesca.giammichel/32/208869_2.png) [@francesca.giammichel](https://forum.freecodecamp.org/u/francesca.giammichel)\
**Post date:** [April 14, 2021, 9:45am UTC](https://forum.freecodecamp.org/t/landing-page-project-help-with-positioning/455811/1 "2021-04-14T09:45:32Z")

</div>

first (of future, I guess) problem with my project  
if I use “position: fixed” for the header, the first part of the page is covered by this header ☹  
I tried to wrap all the page in a container with “position: relative” but it doesn’t work  
I also tried to add margin-top to the presentation section but again, no results  
please, help ☹

[https://codepen.io/ranran212/pen/vYgjGJg](https://codepen.io/ranran212/pen/vYgjGJg)

---

<div class="post-metadata">

**Author:** ![leonfeng](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/leonfeng/32/307332_2.png) [@leonfeng](https://forum.freecodecamp.org/u/leonfeng)\
**Post date:** [April 14, 2021, 10:25pm UTC](https://forum.freecodecamp.org/t/landing-page-project-help-with-positioning/455811/2 "2021-04-14T22:25:03Z")

</div>

Hi @francesca.giammichel. Try this:

```auto
header {
  position: sticky;
  top: 0px;
}

```

More detailed explanations 👉 [position - CSS: Cascading Style Sheets | MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/position)

---

<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:** [October 14, 2021, 10:25am UTC](https://forum.freecodecamp.org/t/landing-page-project-help-with-positioning/455811/3 "2021-10-14T10:25:44Z")

</div>

Closed on October 14, 2021, 10:25am UTC

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