Mobile style menu issues

I’m working on a project for a client and am not sure how to make the hamburger style menu work. It looks as if everything to make the collapsible menu should be in place, but I can’t expand the menu when I test it.

Any suggestions or answers?

 <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
   <a class="navbar-brand" href="#">Carousel</a>
   <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
     <span class="navbar-toggler-icon"></span>
   <div class="collapse navbar-collapse" id="navbarCollapse">
     <ul class="navbar-nav mr-auto">
       <li class="nav-item active">
         <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
       <li class="nav-item">
         <a class="nav-link" href="#">Link</a>
       <li class="nav-item">
         <a class="nav-link disabled" href="#">Disabled</a>
     <form class="form-inline mt-2 mt-md-0">
       <input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
       <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>

Thank you! I almost had something like this, but I didn’t have the script to make the collapsible open. Found what I need, though.

Can you share? have the same problem with tailwind premade navbars

1 Like