# Issues building a navbar

**URL:** <https://forum.freecodecamp.org/t/issues-building-a-navbar/114414>\
**Category:** General\
**Created:** [May 11, 2017, 1:36am UTC](https://forum.freecodecamp.org/t/issues-building-a-navbar/114414 "2017-05-11T01:36:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JCMcGarry](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@JCMcGarry](https://forum.freecodecamp.org/u/JCMcGarry)\
**Post date:** [May 11, 2017, 1:36am UTC](https://forum.freecodecamp.org/t/issues-building-a-navbar/114414/1 "2017-05-11T01:36:25Z")

</div>

So I’m on the portfolio project and I’m having some issues building a navbar. Mainly that there is no bar, it just spits out a column of my navbar header and the list of items I intend to make into the navigation buttons.

Here’s the project [page](http://codepen.io/JCMcGarry/pen/vmRYKK). If someone could take a quick look and maybe help me understand the issue I’d really appreciate it.

---

<div class="post-metadata">

**Author:** ![kevcomedia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevcomedia/32/125737_2.png) [@kevcomedia](https://forum.freecodecamp.org/u/kevcomedia)\
**Post date:** [May 11, 2017, 2:23am UTC](https://forum.freecodecamp.org/t/issues-building-a-navbar/114414/2 "2017-05-11T02:23:46Z")

</div>

Replace your external CSS with this:  
`https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css`

You’d also like to read the bootstrap docs about navbars.  
[https://getbootstrap.com/components/#navbar](https://getbootstrap.com/components/#navbar)

---

<div class="post-metadata">

**Author:** ![JCMcGarry](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@JCMcGarry](https://forum.freecodecamp.org/u/JCMcGarry)\
**Post date:** [May 11, 2017, 12:19pm UTC](https://forum.freecodecamp.org/t/issues-building-a-navbar/114414/3 "2017-05-11T12:19:54Z")

</div>

> [@kevcomedia](#):
>
> [https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css](https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css)

Okay, that’s better but not perfect. Still it actually gives a bar, the rest is down to me to sort.

Cheers for the document link too, I’ll give that a read. One thing I’m wondering is why bootstrap 4 doesn’t produce a navbar. It seems weird that an earlier version does but a current version doesn’t.

Edit: I found a page that gives sample code for a navbar in bootstrap 4. I don’t understand the difference yet so I’m going to have to pick at the code to find out where the actual difference is. Seems to make more sense to stay up to date.

---

<div class="post-metadata">

**Author:** ![HaminKo](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/haminko/32/51880_2.png) [@HaminKo](https://forum.freecodecamp.org/u/HaminKo)\
**Post date:** [May 11, 2017, 12:55pm UTC](https://forum.freecodecamp.org/t/issues-building-a-navbar/114414/4 "2017-05-11T12:55:10Z")

</div>

Bootstrap 4 changed a lot in terms of class names/syntax. It is possible to make a navbar in Boostrap 4, as shown [here](http://codepen.io/Haminko/pen/zwWwWa?editors=1000)

If you want, you can check out the docs for navbars in bootstrap 4:

[https://v4-alpha.getbootstrap.com/components/navbar](https://v4-alpha.getbootstrap.com/components/navbar/)

Not sure if you’ve fixed this already, but just a heads up: make sure to close your `<a>` tags, otherwise your links in the navbar won’t align horizontally.

---

<div class="post-metadata">

**Author:** ![JCMcGarry](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@JCMcGarry](https://forum.freecodecamp.org/u/JCMcGarry)\
**Post date:** [May 11, 2017, 12:57pm UTC](https://forum.freecodecamp.org/t/issues-building-a-navbar/114414/5 "2017-05-11T12:57:30Z")

</div>

Ha, nice one. Literally just found the code sample from the beginning of that page. I should be able to figure this all out now, cheers. 🙂

---

<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:** [January 17, 2021, 8:56pm UTC](https://forum.freecodecamp.org/t/issues-building-a-navbar/114414/6 "2021-01-17T20:56:40Z")

</div>

Closed on January 17, 2021, 8:56pm UTC


