Reputation: 543
I am fixing header using the following code given below and the header gets fixed also but when i reduce the size of browser window the scrolling of the browser windows stops working and i cannot see the whole content. Please give any suggestions.
div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
</div>
</div>
</div>
Upvotes: 0
Views: 65
Reputation: 362430
Check out the Bootstrap docs (http://getbootstrap.com/components/#navbar-fixed-top), it says:
Body padding required The fixed navbar will overlay your other content, unless you add padding to the top of the
body
.
Demo: http://bootply.com/133083
Upvotes: 1