mirror of
https://github.com/jasny/bootstrap.git
synced 2026-04-24 03:00:49 -04:00
add support and docs for .navbar-fixed-bottom
This commit is contained in:
15
docs/templates/pages/components.mustache
vendored
15
docs/templates/pages/components.mustache
vendored
@@ -773,13 +773,24 @@
|
||||
</div>
|
||||
</pre>
|
||||
<h3>{{_i}}Fixed navbar{{/i}}</h3>
|
||||
<p>{{_i}}To make the navbar fixed to the top of the viewport, add <code>.navbar-fixed-top</code> to the outermost div, <code>.navbar</code>.{{/i}}</p>
|
||||
<p>{{_i}}Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, <code>.navbar</code>.{{/i}}</p>
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="navbar navbar-fixed-top">
|
||||
...
|
||||
</div>
|
||||
</pre>
|
||||
<p>{{_i}}In your CSS, you will also need to account for the overlap it causes by adding 40px or more of padding to your <code><body></code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.{{/i}}</p>
|
||||
</div><!--/span-->
|
||||
<div class="span4">
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="navbar navbar-fixed-bottom">
|
||||
...
|
||||
</div>
|
||||
</pre>
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
||||
<p>{{_i}}When you affix the navbar, remember to account for the hidden area underneath. Add 40px or more of apdding to the <code><body></code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.{{/i}}</p>
|
||||
<h3>{{_i}}Brand name{{/i}}</h3>
|
||||
<p>{{_i}}A simple link to show your brand or project name only requires an anchor tag.{{/i}}</p>
|
||||
<pre class="prettyprint linenums">
|
||||
|
||||
Reference in New Issue
Block a user