0
I’m doing the portfolio challenge in freecodecamp. In the menu part I can’t get it to close on smaller screens. The menu closes but clicking on the icon it does not open and shows the items. Where I went wrong?
<nav class="navbar navbar-toggleable-md navbar-inverse bg-inverse">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="#">Portfolio</a>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Images</a>
</li>
</ul>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#">View on github</a>
</li>
</ul>
</div>
</nav>
<div class="container">
<h1>Hello World</h1>
</div>
I’m using the bootstrap 4 and the links were other but it really just added those references up there and it worked. Thanks
– Big LaoBan