# Technical Documentation Page Help

**URL:** <https://forum.freecodecamp.org/t/technical-documentation-page-help/537815>\
**Category:** I Built This\
**Created:** [August 2, 2022, 5:04pm UTC](https://forum.freecodecamp.org/t/technical-documentation-page-help/537815 "2022-08-02T17:04:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorenzversini](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lorenzversini/32/243602_2.png) [@lorenzversini](https://forum.freecodecamp.org/u/lorenzversini)\
**Post date:** [August 2, 2022, 5:04pm UTC](https://forum.freecodecamp.org/t/technical-documentation-page-help/537815/1 "2022-08-02T17:04:58Z")

</div>

Hi all,

I need some help/feedback on my technical documentation page here.

I’m struggling a bit on the responsiveness of it, in particular the navbar on top.  
I tried to play around with some media queries but this is the best I could get out of it.

From looking online, I understand that to make a cool looking dropdown navbar for smaller screens you’ll need bootstrap, but I’m still going through my HTML/CSS course so I know nothing about that.

Is there another way to make it look better on smaller screens?

Also any feedback on the overall project will be much appreciated.

> **[Technical Documentation Page](https://codepen.io/lorenzvers/pen/bGvLvYr)**
>
> ...

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [August 2, 2022, 5:17pm UTC](https://forum.freecodecamp.org/t/technical-documentation-page-help/537815/2 "2022-08-02T17:17:08Z")

</div>

You do not need Bootstrap, here are some simple examples.

CSS only

> **[How To Create a Hoverable Dropdown Menu](https://www.w3schools.com/howto/howto_css_dropdown.asp)**
>
> W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

Some JS

> **[How To Create a Dropdown Menu With CSS and JavaScript](https://www.w3schools.com/howto/howto_js_dropdown.asp)**
>
> W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

> **[How To Create a Mobile Navigation Menu](https://www.w3schools.com/howto/howto_js_mobile_navbar.asp)**
>
> W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

* * *

I think your menu is pretty good.

- You might center the links and make them span all of the container (so you can click the links without clicking just the text).

- Maybe make the container a bit shorter (less tall).

- Maybe fix the container so the links stay at the top when navigating.

---

<div class="post-metadata">

**Author:** ![lorenzversini](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lorenzversini/32/243602_2.png) [@lorenzversini](https://forum.freecodecamp.org/u/lorenzversini)\
**Post date:** [August 2, 2022, 5:29pm UTC](https://forum.freecodecamp.org/t/technical-documentation-page-help/537815/3 "2022-08-02T17:29:25Z")

</div>

Thanks, much appreciated.

I’ll try and do the CSS only version you sent me as I don’t know Javascript yet.

As for the spanning of the links, I believe I made them take up like 90% of the space because I liked to see the border radius on them, but apparently not a great choice fo accessibility 😅

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [August 2, 2022, 5:46pm UTC](https://forum.freecodecamp.org/t/technical-documentation-page-help/537815/4 "2022-08-02T17:46:37Z")

</div>

I mean the actual click target, not the `li`

You did set the `a` elements to display block but because the `li` containers are flex containers they shrink the content down. You can set `flex: 1` on the `a` elements to let them grow.

```auto
#navbar a {
  flex: 1;
}

```

I might also suggest a bit of padding on the links to make them easier to click (larger click target).

---

<div class="post-metadata">

**Author:** ![lorenzversini](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lorenzversini/32/243602_2.png) [@lorenzversini](https://forum.freecodecamp.org/u/lorenzversini)\
**Post date:** [August 2, 2022, 6:15pm UTC](https://forum.freecodecamp.org/t/technical-documentation-page-help/537815/5 "2022-08-02T18:15:59Z")

</div>

I tried `#navbar a { width: 100%;}`in the media query to make it fully clickable, but your solution seems way better. Thanks again

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [August 2, 2022, 6:26pm UTC](https://forum.freecodecamp.org/t/technical-documentation-page-help/537815/6 "2022-08-02T18:26:25Z")

</div>

Setting a full width would work as well. The `flex: 1` way is just more the flexbox way of doing it.

> **[flex - CSS: Cascading Style Sheets | MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/flex)**
>
> The flex CSS shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container.

---

<div class="post-metadata">

**Author:** ![lorenzversini](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lorenzversini/32/243602_2.png) [@lorenzversini](https://forum.freecodecamp.org/u/lorenzversini)\
**Post date:** [August 3, 2022, 7:08am UTC](https://forum.freecodecamp.org/t/technical-documentation-page-help/537815/7 "2022-08-03T07:08:10Z")

</div>

That makes more sense since I’m making a document about flexbox 😅

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [August 11, 2022, 5:57pm UTC](https://forum.freecodecamp.org/t/technical-documentation-page-help/537815/8 "2022-08-11T17:57:18Z")

</div>

Split this topic on August 11, 2022, 5:57pm UTC

A post was split to a new topic: [Technical Documentation project](https://forum.freecodecamp.org/t/technical-documentation-project/541714)

---

<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:** [February 10, 2023, 5:57am UTC](https://forum.freecodecamp.org/t/technical-documentation-page-help/537815/9 "2023-02-10T05:57:41Z")

</div>

Closed on February 10, 2023, 5:57am UTC

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