# Bootstrap Navigation Collapse issue (Portfolio Website)

**URL:** <https://forum.freecodecamp.org/t/bootstrap-navigation-collapse-issue-portfolio-website/120470>\
**Category:** I Built This\
**Created:** [May 27, 2017, 11:58am UTC](https://forum.freecodecamp.org/t/bootstrap-navigation-collapse-issue-portfolio-website/120470 "2017-05-27T11:58:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenWS](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@BenWS](https://forum.freecodecamp.org/u/BenWS)\
**Post date:** [May 27, 2017, 11:58am UTC](https://forum.freecodecamp.org/t/bootstrap-navigation-collapse-issue-portfolio-website/120470/1 "2017-05-27T11:58:06Z")

</div>

My portfolio site has a navigation bar, and the menu options ‘About’, ‘My Projects’, and ‘Contact Me’ hide behind an expandable menu when the webpage width is less than the md breakpoint. I’ve added data-toggle=“collapse” to the menu options so that when the user clicks any of the menu options, the menu collapses.

The problem I’m encountering is that the menu options mentioned above go through the collapse animation even when the width of the page is above the md breakpoint.

I’ve posted pretty much the same question on Stack Overflow, so apologies for the robot-like question posting behavior: [https://stackoverflow.com/questions/44146605/preventing-bootstrap-collapse-animation-above-md-breakpoint](https://stackoverflow.com/questions/44146605/preventing-bootstrap-collapse-animation-above-md-breakpoint)

Link to website: [http://benws-projectportfolio.herokuapp.com/](http://benws-projectportfolio.herokuapp.com/)

HTML:

```
<nav class="navbar navbar-inverse fixed-top navbar-toggleable-md navbar-light bg-faded" style="background-color:#3A4A4D;">
  <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
	<span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="#">Ben Shippey</a>
  <div class="collapse navbar-collapse mr-auto" id="navbarSupportedContent" style="background-color:#3A4A4D;">
	 <ul class="navbar-nav ">
	  <li class="nav-item">
		<a id="aboutButton" class="nav-link active" href="#navbarSupportedContent" data-toggle="collapse">About</a>
	  </li>
	  <li class="nav-item">
		<a id="projectButton" class="nav-link" href="#navbarSupportedContent" data-toggle="collapse">My Projects</a>
	  </li>
	  <li class="nav-item">
		<a id="contactButton" class="nav-link" href="#navbarSupportedContent" data-toggle="collapse">Contact Me</a>
	  </li>
	</ul>
  </div>
</nav>
```

---

<div class="post-metadata">

**Author:** ![lestec](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lestec/32/52636_2.png) [@lestec](https://forum.freecodecamp.org/u/lestec)\
**Post date:** [May 27, 2017, 6:15pm UTC](https://forum.freecodecamp.org/t/bootstrap-navigation-collapse-issue-portfolio-website/120470/2 "2017-05-27T18:15:38Z")

</div>

Hi @BenWS  
My first question is what version of Bootstrap are you using? I’ve seen others having problems because they are using the new version 4 of bootstrap and there are changes as to how to set up the nav bar and some class names. If you are using version 4 here is a link to version 4 changes.

> **[Navbar](https://v4-alpha.getbootstrap.com/components/navbar/)**
>
> Documentation and examples for Bootstrap's powerful, responsive navigation header.

I hope this helps 🙂

---

<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:** [June 1, 2021, 2:33pm UTC](https://forum.freecodecamp.org/t/bootstrap-navigation-collapse-issue-portfolio-website/120470/3 "2021-06-01T14:33:26Z")

</div>

Closed on June 1, 2021, 2:33pm UTC


