Locked lesson.
About this lesson
Exercise files
Download this lesson’s related exercise files.
Building a Resume Website - Navbar.docx59.1 KB Building a Resume Website - Navbar - Solution.docx
60.7 KB
Quick reference
Building a Resume Website - Navbar
Let's add a Navbar to our Resume Website.
When to use
Navbars are great to use for nearly all websites.
Instructions
To create a Navbar, head over to GetBootstrap.com and click the "Components" link, then scroll down to the Navbar section.
Copy the dummy code and paste it into your HTML file.
Modify the dummy code by removing the items that you do not want and updating links. It should look like this:
<nav class="navbar navbar-default">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">John Elder</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="personal_statement.html">Personal Statement</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
Hints & tips
- Adding a Navbar is quick and easy!
- Find the Navbar code on the Components page of GetBootstrap.com
- Paste the code into your site, then modify it, removing items, and adding your name.
Lesson notes are only available for subscribers.