Struggling with collapsing navbar, included jquery and bootstrap.js in the correct order

Struggling with collapsing navbar, included jquery and bootstrap.js in the correct order
0

#1

As the title says, I’m struggling with the getting a collapsing navbar.


#2

Hey I created a codepen where I try to get the navbar collapse. heres the link to the codepen https://codepen.io/128bytes/pen/barjdO?editors=1010. check it out and see where you went wrong. It worked for me. I’m thinking you probably have missing html code somewhere in your bootstrap markup. I hope this helps


#3

You had a typo on the following line:

<div class="navabar-header">

It should have been navbar-header and not navabar-header.

Also, for reasons I can not figure out, the following line was causing problems:

<div class="collapse navbar-collapse" id="myNavbar">

Once I retyped it, it worked.