USE NAVBAR EASILY NOW
1. we start creating navigation bar using
<nav class="navbar navbar-default" role="navigation></nav>
where navbar-default stands for default color which us grey for navbar.
2. we will create elements needed to create a header for navigation bar.
<div class="navbar-header"></div>
3.now we will add a button to it like a menu button
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"></button>
<span class=icon-bar> // will add a single line button on right side.if you copy paste it two more times its gonna look like a menu button.
--it has features of
a. toggle
b.menu bar in small screen
c. java-script is gonna look after the data-toggle and data-target element.
4. write brand name of your site.
<a class="navbar-brand" href="index.html">DataIsys</a>
5. we have finished with the navbar heading now we move forward to the element which will be collapsible in small screen and remain as button inside navbar heading in large screen.
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav"></ul>
<li class="active"><a href="index.html">Home</a></li>// active will highlight the home tab.
<li><a href="blog.html"></a></li>// navigate to blog.html
............ and so on
</ul>
SO THE BASIC OF NAVIGATION BAR IS DONE ....MORE WILL BE COMING IN UPCOMING BLOGS
1. we start creating navigation bar using
<nav class="navbar navbar-default" role="navigation></nav>
where navbar-default stands for default color which us grey for navbar.
2. we will create elements needed to create a header for navigation bar.
<div class="navbar-header"></div>
3.now we will add a button to it like a menu button
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"></button>
<span class=icon-bar> // will add a single line button on right side.if you copy paste it two more times its gonna look like a menu button.
--it has features of
a. toggle
b.menu bar in small screen
c. java-script is gonna look after the data-toggle and data-target element.
4. write brand name of your site.
<a class="navbar-brand" href="index.html">DataIsys</a>
5. we have finished with the navbar heading now we move forward to the element which will be collapsible in small screen and remain as button inside navbar heading in large screen.
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav"></ul>
<li class="active"><a href="index.html">Home</a></li>// active will highlight the home tab.
<li><a href="blog.html"></a></li>// navigate to blog.html
............ and so on
</ul>
SO THE BASIC OF NAVIGATION BAR IS DONE ....MORE WILL BE COMING IN UPCOMING BLOGS
Hi There.,
ReplyDeleteWe visited your Blog and it has a good stuff.
would you permit us to take your pages to post it in www.geeks.com.
-Team geeks.com