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

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

Hey I created a codepen where I try to get the navbar collapse. heres the link to the codepen 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

1 Like

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.

1 Like