The following code shows how to create inner navbar.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.8.3.js'></script>
<script type='text/javascript'
src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css"
href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css">
<style type='text/css'>
.container {<!-- w ww . j a v a 2s . c o m-->
text-align: center;
}
.navbar {
display: inline-block;
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body style='margin:30px'>
<div id="top" class="container">
<div class="navbar">
<div class="navbar-inner">
<ul class="nav">
<li><a href="">Home</a></li>
<li><a href="">Used books exchange</a></li>
<li><a href="">Submit a listing</a></li>
<li><a href="">My account</a></li>
</ul>
</div>
</div>
</body>
</html>