# Technical Documentation Page- Stuck! Need help

**URL:** <https://forum.freecodecamp.org/t/technical-documentation-page-stuck-need-help/383417>\
**Category:** General\
**Created:** [May 4, 2020, 8:39am UTC](https://forum.freecodecamp.org/t/technical-documentation-page-stuck-need-help/383417 "2020-05-04T08:39:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shahzia7575](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/shahzia7575/32/135637_2.png) [@shahzia7575](https://forum.freecodecamp.org/u/shahzia7575)\
**Post date:** [May 4, 2020, 8:39am UTC](https://forum.freecodecamp.org/t/technical-documentation-page-stuck-need-help/383417/1 "2020-05-04T08:39:05Z")

</div>

This is the error:  
#1. On regular sized devices (laptops, desktops), the element with id=“navbar” should be shown on the left half of the screen. It should always be visible to the user and should remain stationary. You may need to enlarge the viewport or zoom out to ensure the navbar doesn’t scroll with the page content.

I’m clueless. Please haaalpp!

Here’s the link to my pen: [Codepen](https://codepen.io/shahzia7575/pen/GRpOwJP)

---

<div class="post-metadata">

**Author:** ![gtaypeg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/gtaypeg/32/133566_2.png) [@gtaypeg](https://forum.freecodecamp.org/u/gtaypeg)\
**Post date:** [May 4, 2020, 9:43am UTC](https://forum.freecodecamp.org/t/technical-documentation-page-stuck-need-help/383417/2 "2020-05-04T09:43:59Z")

</div>

I found the problem:  
The `#navbar` must be fixed to the left side on pc and laptops `(width> 850x)`

This is what I did:

1- I created a div with` id = "container"`, there I put all the content, the `navbar` goes outside the `#container`.  
It would look like this

```auto
<main>
 <nav>
 </nav>
 <div id = "container">
  <sections>
 </div>
</main>

```

2- Main in CSS must be:

```auto
# main-doc {
  display: flex;
  flex-direction: row;
}

```

`flex-direction: row;` so that nav is on the left and div on the right

full css code:

```auto
#main-doc {
  display: flex;
  flex-direction: row;
}
#container {
  margin-left: 180px;
}
#navbar {
  overflow: auto;
  border: 1px solid;
  width: 150px;
  height: calc(100vh - 20px);
  position: fixed;
}
#navbar li {
  list-style: none;
  display: inline-block;
}

@media only screen and (max-width: 815px) {
//
}

```

Another thing: Media queries always go to the end of the css, never to the beginning.

Sorry for the bad English.

Good luck! 😀

---

<div class="post-metadata">

**Author:** ![shahzia7575](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/shahzia7575/32/135637_2.png) [@shahzia7575](https://forum.freecodecamp.org/u/shahzia7575)\
**Post date:** [May 4, 2020, 2:36pm UTC](https://forum.freecodecamp.org/t/technical-documentation-page-stuck-need-help/383417/3 "2020-05-04T14:36:48Z")

</div>

Heyy! Can you please have a look at my code and tell me what I’m supposed to do exactly?

Since I do not know what’s in your html I can’t figure out anything properly ☹

---

<div class="post-metadata">

**Author:** ![gtaypeg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/gtaypeg/32/133566_2.png) [@gtaypeg](https://forum.freecodecamp.org/u/gtaypeg)\
**Post date:** [May 5, 2020, 5:26am UTC](https://forum.freecodecamp.org/t/technical-documentation-page-stuck-need-help/383417/4 "2020-05-05T05:26:43Z")

</div>

My HTML the same as yours. The only thing I did was add a `div` with `id="container"`, there I put all the `<section>`, then `<nav>` moved it up. The structure of the html should look something like this:

```auto
<main>
 <nav>
  //nav content
 </nav>
 <div id="container">
  <section>
  <section>
  <section>
  ...
 </div>
</main>

```

Good luck! 😃

---

<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:55pm UTC](https://forum.freecodecamp.org/t/technical-documentation-page-stuck-need-help/383417/5 "2021-06-01T18:55:42Z")

</div>

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


