Answers for "simple navbar design"

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
1

html nav bar designs

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.topnav {
  overflow: hidden;
  background-color: #333;
}

.topnav a {
  float: left;
  color: cyan;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: gold;
  color: white;
}
</style>
</head>
<body>

<div class="topnav">
  <a class="active" href="#home">Home</a>
  <a href="#news">News</a>
  <a href="#contact">Contact</a>
  <a href="#about">About</a>
</div>

<div style="padding-left:16px">
  <h2>Top Navigation Example</h2>
  <p>By Yasin</p>
</div>

</body>
</html>
Posted by: Guest on July-12-2021

Browse Popular Code Answers by Language