Bootstrap Toggle Button Collapse Not Working [Solved]

Bootstrap Toggle Button Collapse Not Working [Solved]
0.0 0



I was implementing the bootstrap toggle collapse option in my code so that the webpage is responsive to small screen sizes.

However, even though I’m able to hide the menu options in the navbar for smaller screen sizes, I’m however unable to place the toggle icon (the three dashes) in its place.

I found that two links are necessary for accessing this facility, which are:

To be on the safer side I’m also using the below two urls, just in case:

I think I’m overlooking something as a result of which I’m unable to derive the required output.

Can you please help by going through my code in my codepen project, link of which is mentioned below?

Thank you.

My Codepen link:


Apparently this was solved by changing the navbar class from navbar-fixed-top to navbar-default.

I’ve no idea why the default case worked and not the fixed-top.