2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-21 13:24:08 +03:00

navbar positioning

This commit is contained in:
Mark Otto
2015-08-18 01:18:21 -07:00
parent 4c7e4e4454
commit ff72ea6b81
4 changed files with 36 additions and 46 deletions
+17
View File
@@ -162,6 +162,23 @@ Although it's not required, you can wrap a navbar in a `.container` to center it
</nav>
{% endexample %}
## Placement
Navbars can be statically placed (their default behavior), or fixed to the top or bottom of the viewport.
{% example html %}
<nav class="navbar navbar-fixed-top navbar-light bg-faded">
<a class="navbar-brand" href="#">Fixed top</a>
</nav>
{% endexample %}
{% example html %}
<nav class="navbar navbar-fixed-bottom navbar-light bg-faded">
<a class="navbar-brand" href="#">Fixed bottom</a>
</nav>
{% endexample %}
## Collapsible content
Our collapse plugin allows you to use a `<button>` or `<a>` to toggle hidden content.