aboutsummaryrefslogtreecommitdiff
path: root/docs/components.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-02-21 21:12:16 -0800
committerMark Otto <[email protected]>2012-02-21 21:12:16 -0800
commitb4cc6c74f59442879ba2b1ed3e86d26e62390835 (patch)
treefbc05759f4cc494e6de743607415c2740e674f74 /docs/components.html
parente3ae517555fb9500493fde8efeef4a9788cd3264 (diff)
downloadbootstrap-b4cc6c74f59442879ba2b1ed3e86d26e62390835.tar.xz
bootstrap-b4cc6c74f59442879ba2b1ed3e86d26e62390835.zip
add support and docs for .navbar-fixed-bottom
Diffstat (limited to 'docs/components.html')
-rw-r--r--docs/components.html15
1 files changed, 13 insertions, 2 deletions
diff --git a/docs/components.html b/docs/components.html
index 172fbcf20..9cfd261ff 100644
--- a/docs/components.html
+++ b/docs/components.html
@@ -849,13 +849,24 @@
&lt;/div&gt;
</pre>
<h3>Fixed navbar</h3>
- <p>To make the navbar fixed to the top of the viewport, add <code>.navbar-fixed-top</code> to the outermost div, <code>.navbar</code>.</p>
+ <p>Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, <code>.navbar</code>.</p>
+ <div class="row">
+ <div class="span4">
<pre class="prettyprint linenums">
&lt;div class="navbar navbar-fixed-top"&gt;
...
&lt;/div&gt;
</pre>
- <p>In your CSS, you will also need to account for the overlap it causes by adding 40px or more of padding to your <code>&lt;body&gt;</code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.</p>
+ </div><!--/span-->
+ <div class="span4">
+<pre class="prettyprint linenums">
+&lt;div class="navbar navbar-fixed-bottom"&gt;
+ ...
+&lt;/div&gt;
+</pre>
+ </div><!--/span-->
+ </div><!--/row-->
+ <p>When you affix the navbar, remember to account for the hidden area underneath. Add 40px or more of apdding to the <code>&lt;body&gt;</code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.</p>
<h3>Brand name</h3>
<p>A simple link to show your brand or project name only requires an anchor tag.</p>
<pre class="prettyprint linenums">