Bootstrap ready template - navbar help
I've started trying to work with Bootstrap, and I am now using a ready template for a website.
The default template has a nav-bar with class="active" on the "Home" button.
I have a few questions: Do I need to copy the code between <nav></nav> to each new page I create, i.e for Contact, for About, and so on? Or I should only copy the <nav></nav> content to a new file and save it as .html and then include it at the top of the body everytime? Or there is a completely different way?
If needed, here is the code for the navbar:
<nav class="navbar navbar-inverse">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<a class="navbar-brand" href="#"><img id="logo" src="logo.jpg"></a>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="home.php">Home</a></li>
<li><a a href="contact.php">Contact</a></li>
<ul class="nav navbar-nav navbar-right">
<li id="login"><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)