How to Add Nav bar header in bootstrap
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<script src="Scripts/jquery-1.9.1.min.js"></script>
<script src="Scripts/bootstrap.min.js"></script>
<style>
.classforpadding {
padding-left: 300px;
}
</style>
</head>
<body>
<nav class="nav navbar-default">
<div class="navbar-collapse collapse">
<img src="" alt="Logo" style="width:40px;">
<ul class="nav navbar-nav classforpadding">
<li class="active"><a href="#">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">History<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">1.1 </a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">About Us<span class="caret"></span></a>
<ul class="dropdown-menu">
<li>
<a href="#">1</a>
<ul class="dropdown-menu">
<li><a href="#">1.1</a> </li>
</ul>
</li>
<li><a href="#">2</a></li>
</ul>
<li class="active"><a href="#">Contact</a></li>
</ul>
<form class="navbar-form navbar-left" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Key Word" />
</div>
<button type="button" class="btn btn-danger">Submit</button>
</form>
</div>
</nav>
</body>
</html>
Share This with your friend by choosing any social account