Today I am going to show how to design a Navigation Bar using Bootstrap.
To do this first of all download the bootstrap files from getbootstrap.com . After downloading extract the three folders( CSS,fonts,Js) to a any folder dedicated to your website. Now open Notepad and copy the following code and save the file as an html file in the same folder(your dedicated folder where you added the earlier three folders).
Note- I have intentionally left all links as #, you can add whatever link you feel like adding. also you can change the menu as per ur needs
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width , initial scale=1.0">
<title></title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<!---navbar starts-->
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Website</a>
</div>
<div class="collapse navbar-collapse navbar-right" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">About us </a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Social Network
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#>Facebook</a></li>
<li><a href="#">Twitter</a></li>
<li><a href="#">Google+</a></li>
<li><a href="#">Instagram</a></li>
</ul>
</li>
<li><a href="#">Contact Us</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>
</div>
</div>
</nav>
<!---navbar ends-->
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>
Your Responsive Navigation Bar is Ready
This would give you the desired result you are looking for .Thank You.
To do this first of all download the bootstrap files from getbootstrap.com . After downloading extract the three folders( CSS,fonts,Js) to a any folder dedicated to your website. Now open Notepad and copy the following code and save the file as an html file in the same folder(your dedicated folder where you added the earlier three folders).
Note- I have intentionally left all links as #, you can add whatever link you feel like adding. also you can change the menu as per ur needs
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width , initial scale=1.0">
<title></title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<!---navbar starts-->
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Website</a>
</div>
<div class="collapse navbar-collapse navbar-right" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">About us </a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Social Network
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#>Facebook</a></li>
<li><a href="#">Twitter</a></li>
<li><a href="#">Google+</a></li>
<li><a href="#">Instagram</a></li>
</ul>
</li>
<li><a href="#">Contact Us</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>
</div>
</div>
</nav>
<!---navbar ends-->
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>
Your Responsive Navigation Bar is Ready
This would give you the desired result you are looking for .Thank You.
Comments
Post a Comment