# Need help with "Technical Documentation Page"

**URL:** <https://forum.freecodecamp.org/t/need-help-with-technical-documentation-page/496379>\
**Category:** Curriculum Help\
**Tags:** html, css\
**Created:** [February 9, 2022, 8:06pm UTC](https://forum.freecodecamp.org/t/need-help-with-technical-documentation-page/496379 "2022-02-09T20:06:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![troyb16](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/troyb16/32/178695_2.png) [@troyb16](https://forum.freecodecamp.org/u/troyb16)\
**Post date:** [February 9, 2022, 8:06pm UTC](https://forum.freecodecamp.org/t/need-help-with-technical-documentation-page/496379/1 "2022-02-09T20:06:28Z")

</div>

I need help with the “nav-links” in my scrollable menu at the top. I noticed in the project example, you can click anywhere on the whole length of the link where there isn’t text and it will still bring you to the part of the page it says but with mine it won’t scroll down unless you click the text itself. What am I doing wrong?

**Project example:** [https://codepen.io/freeCodeCamp/full/NdrKKL](https://codepen.io/freeCodeCamp/full/NdrKKL)

**My project:** [https://codepen.io/troy\_b16/pen/dyZWbNN](https://codepen.io/troy_b16/pen/dyZWbNN)

---

<div class="post-metadata">

**Author:** ![isimeri](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/isimeri/32/248268_2.png) [@isimeri](https://forum.freecodecamp.org/u/isimeri)\
**Post date:** [February 9, 2022, 8:17pm UTC](https://forum.freecodecamp.org/t/need-help-with-technical-documentation-page/496379/2 "2022-02-09T20:17:07Z")

</div>

Hey.

The `<a>` elements are not as high and wide as the parent `<li>` elements.  
You can set some `background-color` to both to visualize what i mean.

Hope this helps.  
Cheers.

---

<div class="post-metadata">

**Author:** ![troyb16](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/troyb16/32/178695_2.png) [@troyb16](https://forum.freecodecamp.org/u/troyb16)\
**Post date:** [February 9, 2022, 8:19pm UTC](https://forum.freecodecamp.org/t/need-help-with-technical-documentation-page/496379/3 "2022-02-09T20:19:41Z")

</div>

I figured it out, I needed to add: `display: block;` to my a tag in my css.

---

<div class="post-metadata">

**Author:** ![isimeri](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/isimeri/32/248268_2.png) [@isimeri](https://forum.freecodecamp.org/u/isimeri)\
**Post date:** [February 9, 2022, 8:23pm UTC](https://forum.freecodecamp.org/t/need-help-with-technical-documentation-page/496379/4 "2022-02-09T20:23:23Z")

</div>

Yep, that’s half of the solution.

---

<div class="post-metadata">

**Author:** ![troyb16](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/troyb16/32/178695_2.png) [@troyb16](https://forum.freecodecamp.org/u/troyb16)\
**Post date:** [February 9, 2022, 8:25pm UTC](https://forum.freecodecamp.org/t/need-help-with-technical-documentation-page/496379/5 "2022-02-09T20:25:48Z")

</div>

All I did was add that one extra rule and it seems to work fine now, are you noticing anything else I should be doing?

---

<div class="post-metadata">

**Author:** ![troyb16](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/troyb16/32/178695_2.png) [@troyb16](https://forum.freecodecamp.org/u/troyb16)\
**Post date:** [February 9, 2022, 8:29pm UTC](https://forum.freecodecamp.org/t/need-help-with-technical-documentation-page/496379/6 "2022-02-09T20:29:11Z")

</div>

Oh I noticed, on desktop there was padding that was preventing me from clicking on certain spots because I had padding applied to my li’s instead of the a tags, I just switched the padding and boom 💥 it works!

---

<div class="post-metadata">

**Author:** ![isimeri](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/isimeri/32/248268_2.png) [@isimeri](https://forum.freecodecamp.org/u/isimeri)\
**Post date:** [February 9, 2022, 8:29pm UTC](https://forum.freecodecamp.org/t/need-help-with-technical-documentation-page/496379/7 "2022-02-09T20:29:59Z")

</div>

![image](https://global.discourse-cdn.com/freecodecamp/original/3X/4/e/4e8dd6be449ade7a58b560172e4bb8b1a1539719.png)  
If you just add `display: block` to your `<a>` elements, your `nav` will work like this. If you hover over the green area, the link will work, however, it won’t if you click on the pink area.

---

<div class="post-metadata">

**Author:** ![isimeri](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/isimeri/32/248268_2.png) [@isimeri](https://forum.freecodecamp.org/u/isimeri)\
**Post date:** [February 9, 2022, 8:31pm UTC](https://forum.freecodecamp.org/t/need-help-with-technical-documentation-page/496379/8 "2022-02-09T20:31:08Z")

</div>

> [@troyb16](#):
>
> Oh I noticed, on desktop there was padding that was preventing me from clicking on certain spots because I had padding applied to my li’s instead of the a tags, I just switched the padding and boom 💥 it works!

Yep, that solved the problem, good job!

---

<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:** [August 11, 2022, 8:31am UTC](https://forum.freecodecamp.org/t/need-help-with-technical-documentation-page/496379/9 "2022-08-11T08:31:21Z")

</div>

Closed on August 11, 2022, 8:31am UTC

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