Bootstrap provides option to be fixed at the top
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
...
</div>
</nav>
reference: http://getbootstrap.com/components/#navbar-fixed-top
OR
You can use absolute
to be fixed at the top and add same height navbar as body padding-top
for example
.navbar{
height: 50px;
}
body{
padding-top: 50px;
}