This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 311
W012
Chris Rebert edited this page Sep 11, 2015
·
2 revisions
For proper padding and to properly support usage of the grid system within the navbar, everything within a .navbar
should typically be within a container, either fluid (.container-fluid
) or non-fluid (.container
).
Wrong:
<div class="navbar navbar-default">
<div class="navbar-header">...</div>
<div class="navbar-collapse collapse">...</div>
</div>
Right:
<div class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">...</div>
<div class="navbar-collapse collapse">...</div>
</div>
</div>
Also Right:
<div class="navbar navbar-default">
<div class="container">
<div class="navbar-header">...</div>
<div class="navbar-collapse collapse">...</div>
</div>
</div>
Bootlint documentation wiki content is licensed under the CC BY 3.0 License, and based on Bootstrap's docs which are copyright Twitter, Inc.