Answers for "bootstrap navbar template"

0

navbar in bootstrap4

<div class="pos-f-t">
  <div class="collapse" id="navbarToggleExternalContent">
    <div class="bg-dark p-4">
      <h4 class="text-white">Collapsed content</h4>
      <span class="text-muted">Toggleable via the navbar brand.</span>
    </div>
  </div>
  <nav class="navbar navbar-dark bg-dark">
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
  </nav>
</div>
Posted by: Guest on August-18-2020
0

navbar examples

<nav class="navbar navbar-expand-md bg-dark 
  navbar-dark">
  <!-- Brand -->
  <a class="navbar-brand" href="#">Navbar</a>

  
  <!-- Toggler/collapsibe Button -->
  <button 
  class="navbar-toggler" type="button" 
  data-toggle="collapse" data-target="#collapsibleNavbar">
    
  <span class="navbar-toggler-icon"></span>
  </button>

  
  <!-- Navbar links -->
  <div class="collapse navbar-collapse" 
  id="collapsibleNavbar">
    <ul class="navbar-nav">
      
  <li class="nav-item">
        <a class="nav-link" 
  href="#">Link</a>
      </li>
      
  <li class="nav-item">
        <a class="nav-link" 
  href="#">Link</a>
      </li>
      
  <li class="nav-item">
        <a class="nav-link" 
  href="#">Link</a>
      </li> 
    
  </ul>
  </div> 
</nav>
Posted by: Guest on December-13-2020

Browse Popular Code Answers by Language