Reputation: 2840
I want a fixed top bar, with content below. However, if I don't set the margin top the content of this div will be placed under the fixed top bar.
<nav class="navbar navbar-default navbar-fixed-top">
<div id="navbar" class="navbar-collapse collapse"></div>
</div>
</nav>
<div class="container">
<h1>Navbar example</h1>
<h1>Navbar example</h1>
<h1>Navbar example</h1>
<h1>Navbar example</h1>
<h1>Navbar example</h1>
</div>
Set a margin top is the correct way, or there is some way in boostrapt to make this?
Upvotes: 0
Views: 475